bzr branch
http://suren.me/webbzr/alps/pcitool
379
by Suren A. Chilingaryan
Support XML configuration of device models |
1 |
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2 |
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
|
3 |
<xsd:simpleType name="hex16_t"> |
|
4 |
<xsd:restriction base="xsd:string"> |
|
385
by Suren A. Chilingaryan
Enforce 4 digits in XML representation of vendor and device ids |
5 |
<xsd:pattern value="([a-fA-F0-9]){4}"/> |
379
by Suren A. Chilingaryan
Support XML configuration of device models |
6 |
</xsd:restriction>
|
7 |
</xsd:simpleType>
|
|
8 |
||
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 |
||
15 |
<xsd:element name="devices"> |
|
16 |
<xsd:complexType>
|
|
17 |
<xsd:sequence>
|
|
18 |
<xsd:element name="device" type="device_t" minOccurs="0" maxOccurs="unbounded" /> |
|
19 |
</xsd:sequence>
|
|
20 |
</xsd:complexType>
|
|
21 |
</xsd:element>
|
|
22 |
</xsd:schema>
|