diff options
Diffstat (limited to 'xsd')
-rw-r--r-- | xsd/ee-bom.xsd | 54 |
1 files changed, 39 insertions, 15 deletions
diff --git a/xsd/ee-bom.xsd b/xsd/ee-bom.xsd index a9a2cc1..16d18bb 100644 --- a/xsd/ee-bom.xsd +++ b/xsd/ee-bom.xsd @@ -9,19 +9,19 @@ <xs:complexType name="BomFile"> <xs:sequence> - <xs:element name="parts" type="PartList" minOccurs="0" maxOccurs="1"/> + <xs:element name="parts" type="PartList" minOccurs="0"/> </xs:sequence> </xs:complexType> + <xs:complexType name="DistributorInfo" abstract="true"/> + <xs:complexType name="Part"> <xs:sequence> <xs:element name="schema-reference" type="xs:string"/> <xs:element name="part-type" type="xs:anyURI"/> - <!-- - <xs:element name="manufacturer-part-number" type="xs:string"/> - <xs:element name="distributor-part-numbers" type="DistributorPartNumberList"/> - --> <xs:element name="part-numbers" type="PartNumberList"/> + <xs:element name="distributor-info" type="DistributorInfo"/> + <xs:element name="fact-sets" type="FactSetList"/> </xs:sequence> <xs:attribute ref="id" use="required"/> </xs:complexType> @@ -32,32 +32,56 @@ </xs:sequence> </xs:complexType> - <!-- - <xs:complexType name="DistributorPartNumber"> + <xs:complexType name="PartNumber"> <xs:sequence> + <xs:element name="value" type="xs:string"/> <xs:element name="distributor" type="xs:anyURI"/> - <xs:element name="number" type="xs:string"/> </xs:sequence> </xs:complexType> - <xs:complexType name="DistributorPartNumberList"> + <xs:complexType name="PartNumberList"> + <xs:sequence> + <xs:element name="part-number" type="PartNumber" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="FactSetList"> <xs:sequence> - <xs:element name="distributor-part-number" type="DistributorPartNumber" maxOccurs="unbounded"/> + <xs:element name="fact-set" type="FactSet" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> - --> - <xs:complexType name="PartNumber"> + <xs:complexType name="FactSet"> <xs:sequence> + <xs:element name="source" type="xs:anyURI"/> + <xs:element name="facts" type="FactList"/> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="Fact"> + <xs:sequence> + <xs:element name="key" type="xs:anyURI"/> + <xs:element name="label" type="xs:string"/> <xs:element name="value" type="xs:string"/> - <xs:element name="distributor" type="xs:anyURI"/> </xs:sequence> </xs:complexType> - <xs:complexType name="PartNumberList"> + <xs:complexType name="FactList"> <xs:sequence> - <xs:element name="part-number" type="PartNumber" maxOccurs="unbounded"/> + <xs:element name="fact" type="Fact" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> + <!-- Digi-Key --> + + <xs:complexType name="DigikeyDistributorInfo"> + <xs:complexContent> + <xs:extension base="DistributorInfo"> + <xs:sequence> + <xs:element name="state" type="xs:string"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + </xs:schema> |