summaryrefslogtreecommitdiffstats
path: root/xml/devices.xsd
blob: 27e9b39a2ded094d4eb5660b304f0be81d9e8f7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:include schemaLocation="types.xsd"/>

  <xsd:simpleType name="hex16_t">
    <xsd:restriction base="xsd:string">
      <xsd:pattern value="([a-fA-F0-9]){1,4}"/>
    </xsd:restriction>
  </xsd:simpleType>

  <xsd:complexType name="device_t">
    <xsd:attribute name="vendor" type="hex16_t" />
    <xsd:attribute name="device" type="hex16_t" />
    <xsd:attribute name="model" type="xsd:string" />
  </xsd:complexType>

  <xsd:element name="devices">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="device" type="device_t" minOccurs="0" maxOccurs="unbounded" />
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>