diff options
Diffstat (limited to 'xsd')
-rw-r--r-- | xsd/ee-bom.xsd | 1 | ||||
-rw-r--r-- | xsd/ee-catalog.xsd | 26 | ||||
-rw-r--r-- | xsd/ee-index.xsd | 24 |
3 files changed, 25 insertions, 26 deletions
diff --git a/xsd/ee-bom.xsd b/xsd/ee-bom.xsd index 16d18bb..a357deb 100644 --- a/xsd/ee-bom.xsd +++ b/xsd/ee-bom.xsd @@ -6,6 +6,7 @@ <xs:attribute name="id" type="xs:string"/> <xs:element name="bom-file" type="BomFile"/> + <xs:element name="part" type="Part"/> <xs:complexType name="BomFile"> <xs:sequence> diff --git a/xsd/ee-catalog.xsd b/xsd/ee-catalog.xsd deleted file mode 100644 index 6da3558..0000000 --- a/xsd/ee-catalog.xsd +++ /dev/null @@ -1,26 +0,0 @@ -<xsd:schema - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://purl.org/ee/bom-file" - xmlns="http://purl.org/ee/bom-file"> - - <xsd:element name="catalog-file" type="CatalogFile"/> - - <xsd:complexType name="CatalogFile"> - <xsd:sequence> - <xsd:element name="products" type="ProductList" minOccurs="0" maxOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="Product"> - <xsd:sequence> - <xsd:element name="ref" type="xsd:string"/> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="ProductList"> - <xsd:sequence> - <xsd:element name="product" type="Product" maxOccurs="unbounded"/> - </xsd:sequence> - </xsd:complexType> - -</xsd:schema> diff --git a/xsd/ee-index.xsd b/xsd/ee-index.xsd new file mode 100644 index 0000000..21dbeb2 --- /dev/null +++ b/xsd/ee-index.xsd @@ -0,0 +1,24 @@ +<xs:schema + xmlns:xs="http://www.w3.org/2001/XMLSchema" + targetNamespace="http://purl.org/ee/bom-file" + xmlns="http://purl.org/ee/bom-file"> + + <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> |