diff options
Diffstat (limited to 'xsd')
-rw-r--r-- | xsd/ee.xsd | 52 |
1 files changed, 30 insertions, 22 deletions
@@ -1,3 +1,31 @@ +<!-- +Link: + - url + - relation + - media-type + +SupplierDatabase + Supplier + - url + - id (short name, used for UI) + +ExchangeRateDatabase + ExchangeRate + - from + - to + - rate + +PartListFile + PartList + Pricing (also used directly on a Part) + +PartListFile is used for +* BOM (schema export) +* downloading facts and prices from suppliers +* Creating orders from sets of available part lists + +TODO: rename 'id' to 'url'. +--> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://purl.org/ee/bom-file" @@ -5,10 +33,10 @@ <xs:attribute name="id" type="xs:string"/> - <xs:element name="part-collection" type="PartCollection"/> + <xs:element name="part-db" type="PartDb"/> <xs:element name="part" type="Part"/> - <xs:complexType name="PartCollection"> + <xs:complexType name="PartDb"> <xs:sequence> <xs:element name="parts" type="PartList" minOccurs="0"/> </xs:sequence> @@ -83,24 +111,4 @@ </xs:sequence> </xs:complexType> - <!-- --> - - <xs:element name="file-index" type="IndexFile"/> - - <xs:complexType name="IndexFile"> - <xs:sequence> - <xs:element name="files" type="FileList" minOccurs="0"/> - </xs:sequence> - </xs:complexType> - - <xs:complexType name="File"> - <xs:attribute name="path" use="required" type="xs:string"/> - </xs:complexType> - - <xs:complexType name="FileList"> - <xs:sequence> - <xs:element name="file" type="File" maxOccurs="unbounded"/> - </xs:sequence> - </xs:complexType> - </xs:schema> |