Generation Script + BUGFIX, XSD für Beilagen

This commit is contained in:
Simon Martens
2024-08-15 14:22:51 +02:00
parent 913f83ba17
commit 9674030be0
10 changed files with 876 additions and 736 deletions

View File

@@ -22,31 +22,56 @@
<xsd:element name="datum" type="kgpz:date" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Das Datum des Stücks, wie auf dem Titel angegeben, falls bekannt.</xsd:documentation>
<xsd:documentation>Das Datum des Stücks, wie auf dem Titel
angegeben, falls bekannt.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="von" type="xsd:positiveInteger" minOccurs="0"
maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Die erste Seitenzahl des Stücks, falls bekannt.</xsd:documentation>
<xsd:documentation>Die erste Seitenzahl des Stücks, falls
bekannt.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="bis" type="xsd:positiveInteger" minOccurs="0"
maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Die letzte Seitenzahl des Stücks, falls bekannt.</xsd:documentation>
<xsd:documentation>Die letzte Seitenzahl des Stücks, falls
bekannt.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<!-- Kann von Stücke abgeleitet werden -->
<xsd:element name="beilagen" type="xsd:nonNegativeInteger" default="0"
minOccurs="0" maxOccurs="1">
<xsd:element name="beilage" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation> Optional: Die Anzahl der Beilagen des
Stücks. </xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="von" type="xsd:positiveInteger"
minOccurs="0"
maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Die erste Seitenzahl der Beilage,
falls bekannt.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="bis" type="xsd:positiveInteger"
minOccurs="0"
maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Die letzte Seitenzahl der
Beilage, falls bekannt.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="nummer" type="xsd:positiveInteger"
use="required"></xsd:attribute>
</xsd:complexType>
</xsd:element>
<!-- Vielleicht nötig -->
@@ -76,4 +101,4 @@
<xsd:field xpath="kgpz:datum/@when" />
</xsd:unique>
</xsd:element>
</xsd:schema>
</xsd:schema>