aboutsummaryrefslogtreecommitdiff
path: root/xsd
diff options
context:
space:
mode:
Diffstat (limited to 'xsd')
-rw-r--r--xsd/ee.xsd27
1 files changed, 25 insertions, 2 deletions
diff --git a/xsd/ee.xsd b/xsd/ee.xsd
index 446bab7..32c97b3 100644
--- a/xsd/ee.xsd
+++ b/xsd/ee.xsd
@@ -39,6 +39,7 @@ TODO: rename 'id' to 'url'.
<xs:complexType name="PartDb">
<xs:sequence>
<xs:element name="parts" type="PartList" minOccurs="0"/>
+ <xs:element name="assembly" type="Assembly" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
@@ -49,7 +50,7 @@ TODO: rename 'id' to 'url'.
<xs:element name="part-type" type="xs:anyURI"/>
<xs:element name="description" type="xs:string"/>
<xs:element name="links" type="LinkList"/>
- <xs:element name="references" type="ReferencesList"/>
+ <xs:element name="references" type="ReferenceList"/>
<xs:element name="distributor-info" type="DistributorInfo"/>
<xs:element name="facts" type="FactList"/>
<xs:element name="price-breaks" type="PriceBreakList"/>
@@ -87,13 +88,14 @@ TODO: rename 'id' to 'url'.
</xs:sequence>
</xs:complexType>
- <xs:complexType name="ReferencesList">
+ <xs:complexType name="ReferenceList">
<xs:sequence>
<xs:choice maxOccurs="unbounded">
<xs:element name="part-reference" type="PartReference"/>
<xs:element name="schematic-reference" type="SchematicReference"/>
<xs:element name="part-number" type="PartNumber"/>
<xs:element name="supplier-part-number" type="SupplierPartNumber"/>
+ <xs:element name="description" type="xs:string"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
@@ -149,4 +151,25 @@ TODO: rename 'id' to 'url'.
</xs:sequence>
</xs:complexType>
+ <!-- Assembly should probably be its own format -->
+ <xs:complexType name="AssemblyPart">
+ <xs:sequence>
+ <xs:element name="references" type="ReferenceList"/>
+ <xs:element name="count" type="xs:double" minOccurs="0"/>
+ <xs:element name="sub-parts" type="AssemblyPartList" minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="AssemblyPartList">
+ <xs:sequence>
+ <xs:element name="assembly-part" type="AssemblyPart" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="Assembly">
+ <xs:sequence>
+ <xs:element name="assembly-parts" type="AssemblyPartList"/>
+ </xs:sequence>
+ </xs:complexType>
+
</xs:schema>