aboutsummaryrefslogtreecommitdiff
path: root/xsd
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-10-16 06:12:09 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-10-16 08:49:48 +0200
commit038152393727bfafc26f25e3e5c14e6f1219e07a (patch)
tree131c6ade35a4278eb40d787cb421bf74e4532026 /xsd
parent73f151ec1da4ca78d4b9326f7efc81e0fad05159 (diff)
downloadee-python-038152393727bfafc26f25e3e5c14e6f1219e07a.tar.gz
ee-python-038152393727bfafc26f25e3e5c14e6f1219e07a.tar.bz2
ee-python-038152393727bfafc26f25e3e5c14e6f1219e07a.tar.xz
ee-python-038152393727bfafc26f25e3e5c14e6f1219e07a.zip
part: Adding category concept.
Useful for later classifiying components.
Diffstat (limited to 'xsd')
-rw-r--r--xsd/ee.xsd17
1 files changed, 17 insertions, 0 deletions
diff --git a/xsd/ee.xsd b/xsd/ee.xsd
index 87f072d..8aad7d2 100644
--- a/xsd/ee.xsd
+++ b/xsd/ee.xsd
@@ -35,11 +35,13 @@ TODO: rename 'id' to 'url'.
<xs:element name="part-db" type="PartDb"/>
<xs:element name="part" type="Part"/>
+ <xs:element name="categories" type="CategoryList"/>
<xs:complexType name="PartDb">
<xs:sequence>
<xs:element name="parts" type="PartList" minOccurs="0"/>
<xs:element name="assembly" type="Assembly" minOccurs="0"/>
+ <xs:element name="categories" type="CategoryList" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
@@ -47,6 +49,7 @@ TODO: rename 'id' to 'url'.
<xs:sequence>
<xs:element name="supplier" type="xs:anyURI" minOccurs="0"/>
<xs:element name="description" type="xs:string"/>
+ <xs:element name="category" type="xs:anyURI"/>
<xs:element name="links" type="LinkList"/>
<xs:element name="references" type="ReferenceList"/>
<xs:element name="facts" type="FactList"/>
@@ -61,6 +64,20 @@ TODO: rename 'id' to 'url'.
</xs:sequence>
</xs:complexType>
+ <xs:complexType name="Category">
+ <xs:sequence>
+ <xs:element name="name" type="xs:string" minOccurs="0"/>
+ <xs:element name="links" type="LinkList"/>
+ </xs:sequence>
+ <xs:attribute ref="uri"/>
+ </xs:complexType>
+
+ <xs:complexType name="CategoryList">
+ <xs:sequence>
+ <xs:element name="category" type="Category" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+
<xs:complexType name="PartReference">
<xs:sequence>
<xs:element name="part-uri" type="xs:anyURI"/>