aboutsummaryrefslogtreecommitdiff
path: root/xsd
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-05-11 14:48:15 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-05-11 14:48:15 +0200
commit0149fcfa2bd9ac8c9f6b05851f7264f005aa2305 (patch)
tree3757a7148377bf18e32234d375444ffccbc5a8f0 /xsd
parenteffb3470dd1be3a0dd1eaa83991cef45b5e08dab (diff)
downloadee-python-0149fcfa2bd9ac8c9f6b05851f7264f005aa2305.tar.gz
ee-python-0149fcfa2bd9ac8c9f6b05851f7264f005aa2305.tar.bz2
ee-python-0149fcfa2bd9ac8c9f6b05851f7264f005aa2305.tar.xz
ee-python-0149fcfa2bd9ac8c9f6b05851f7264f005aa2305.zip
drawio-to-parts: new tool.
ee.xsd: new type: Assembly and AssemblyPart. Should probably be its own file type. ee.part: Better DSL instead of using the raw xml types.
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>