diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-02-26 23:08:19 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-02-26 23:08:19 +0100 |
commit | 97c8bb9db96e27051f8746865f657408263db0b8 (patch) | |
tree | 604cb6e9b87e79f43e54940adbc83520e89940fe /xsd | |
parent | 80e0623913e87c6480049520590e424a831e0401 (diff) | |
download | ee-python-97c8bb9db96e27051f8746865f657408263db0b8.tar.gz ee-python-97c8bb9db96e27051f8746865f657408263db0b8.tar.bz2 ee-python-97c8bb9db96e27051f8746865f657408263db0b8.tar.xz ee-python-97c8bb9db96e27051f8746865f657408263db0b8.zip |
o Creating a PartDb that manages a file system directory with one xml
file per part.
o Switching xml-based code to use PartDb.
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> |