Commit 9ff2b901 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[profile gen] Add optional Name to agency description

additionaly to Identification. This comes from a sample profile used in SAEM
tests.
parent 2e80fbab057c
......@@ -888,6 +888,7 @@ class SEDA1XSDExport(SEDA2XSDExport):
agency_node = self.element_schema(transfer_node, agency_type)
self.element_schema(agency_node, 'Identification', 'qdt:ArchivesIDType',
xsd_attributes=self.xsd_attributes_scheme())
self.element_schema(agency_node, 'Name', 'udt:TextType', cardinality='0..1')
for archive_unit in archive_transfer.archive_units:
self.xsd_archive(transfer_node, archive_unit)
......
......@@ -18,11 +18,21 @@
<rng:element name="Identification">
<rng:data type="string"/>
</rng:element>
<rng:optional>
<rng:element name="Name">
<rng:data type="string"/>
</rng:element>
</rng:optional>
</rng:element>
<rng:element name="ArchivalAgency">
<rng:element name="Identification">
<rng:data type="string"/>
</rng:element>
<rng:optional>
<rng:element name="Name">
<rng:data type="string"/>
</rng:element>
</rng:optional>
</rng:element>
<rng:oneOrMore>
<rng:element name="Contains">
......
......@@ -47,6 +47,7 @@
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element minOccurs="0" name="Name" type="udt:TextType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
......@@ -67,6 +68,7 @@
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element minOccurs="0" name="Name" type="udt:TextType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
......
......@@ -27,11 +27,21 @@
<rng:element name="Identification">
<rng:data type="string"/>
</rng:element>
<rng:optional>
<rng:element name="Name">
<rng:data type="string"/>
</rng:element>
</rng:optional>
</rng:element>
<rng:element name="ArchivalAgency">
<rng:element name="Identification">
<rng:data type="string"/>
</rng:element>
<rng:optional>
<rng:element name="Name">
<rng:data type="string"/>
</rng:element>
</rng:optional>
</rng:element>
<rng:oneOrMore>
<rng:element name="Archive">
......
......@@ -47,6 +47,7 @@
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element minOccurs="0" name="Name" type="udt:TextType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
......@@ -67,6 +68,7 @@
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element minOccurs="0" name="Name" type="udt:TextType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment