devices.xsd 766 B

123456789101112131415161718192021222324
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  3. <xsd:include schemaLocation="types.xsd"/>
  4. <xsd:simpleType name="hex16_t">
  5. <xsd:restriction base="xsd:string">
  6. <xsd:pattern value="([a-fA-F0-9]){1,4}"/>
  7. </xsd:restriction>
  8. </xsd:simpleType>
  9. <xsd:complexType name="device_t">
  10. <xsd:attribute name="vendor" type="hex16_t" />
  11. <xsd:attribute name="device" type="hex16_t" />
  12. <xsd:attribute name="model" type="xsd:string" />
  13. </xsd:complexType>
  14. <xsd:element name="devices">
  15. <xsd:complexType>
  16. <xsd:sequence>
  17. <xsd:element name="device" type="device_t" minOccurs="0" maxOccurs="unbounded" />
  18. </xsd:sequence>
  19. </xsd:complexType>
  20. </xsd:element>
  21. </xsd:schema>