XSD-Dokumentation

This commit is contained in:
Simon Martens
2024-05-16 20:20:00 +02:00
parent d21853a150
commit 1c7c81943f
2 changed files with 219 additions and 221 deletions

View File

@@ -16,13 +16,13 @@
</xsd:annotation>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="ref" use="required" type="kgpz:NonEmptyString" >
<xsd:attribute name="ref" use="required" type="kgpz:NonEmptyString">
<xsd:annotation>
<xsd:documentation>Pflicht: Die ID des referenzierten Elements.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="unsicher" use="optional" default="false" type="xsd:boolean" >
<xsd:attribute name="unsicher" use="optional" default="false" type="xsd:boolean">
<xsd:annotation>
<xsd:documentation>Optional: Ist die Referenz unsicher? Erlaubt: true | false</xsd:documentation>
</xsd:annotation>
@@ -33,17 +33,14 @@
<xsd:complexType name="werkref">
<xsd:annotation>
<xsd:documentation>
Bezieht sich auf ein Werk und qualifiziert diese Beziehung.
</xsd:documentation>
<xsd:documentation> Bezieht sich auf ein Werk und qualifiziert diese Beziehung. </xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:extension base="kgpz:ref">
<xsd:attribute name="kat" use="required" >
<xsd:attribute name="kat" use="required">
<xsd:annotation>
<xsd:documentation>
Die Art der Beziehung zum Werk. Werte: rezension, auszug, kommentar, erwähnung
</xsd:documentation>
<xsd:documentation> Die Art der Beziehung zum Werk. Werte: rezension, auszug, kommentar,
erwähnung </xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
@@ -60,17 +57,14 @@
<xsd:complexType name="akteurref">
<xsd:annotation>
<xsd:documentation>
Bezieht sich auf einen Akteur und qualifiziert diese Beziehung.
</xsd:documentation>
<xsd:documentation> Bezieht sich auf einen Akteur und qualifiziert diese Beziehung. </xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:extension base="kgpz:ref">
<xsd:attribute name="kat" use="optional" default="autor">
<xsd:annotation>
<xsd:documentation>
Die Art der Beziehung zum Akteur. Werte: erwähnt, autor, herausgeber, verleger, drucker, vertrieb.
</xsd:documentation>
<xsd:documentation> Die Art der Beziehung zum Akteur. Werte: erwähnung, autor,
herausgeber, verleger, drucker, vertrieb. </xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
@@ -90,17 +84,13 @@
<xsd:complexType name="ortref">
<xsd:annotation>
<xsd:documentation>
Bezieht sich auf einen Akteur und qualifiziert diese Beziehung.
</xsd:documentation>
<xsd:documentation> Bezieht sich auf einen Ort und qualifiziert diese Beziehung. </xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:extension base="kgpz:ref">
<xsd:attribute name="kat" use="optional" default="entstehungsort">
<xsd:annotation>
<xsd:documentation>
Die Art der Beziehung zum Akteur. Werte: erwähnt, autor, herausgeber, verleger, drucker, vertrieb.
</xsd:documentation>
<xsd:documentation> Die Art der Beziehung zum Ort. Werte: entstehungsort </xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
@@ -114,68 +104,78 @@
<!-- This section is almost exactly as in TEI -->
<xsd:attributeGroup name="dateattributes">
<xsd:attributeGroup ref="kgpz:when"/>
<xsd:attributeGroup ref="kgpz:notBefore"/>
<xsd:attributeGroup ref="kgpz:notAfter"/>
<xsd:attributeGroup ref="kgpz:from"/>
<xsd:attributeGroup ref="kgpz:to"/>
<xsd:attributeGroup ref="kgpz:when" />
<xsd:attributeGroup ref="kgpz:notBefore" />
<xsd:attributeGroup ref="kgpz:notAfter" />
<xsd:attributeGroup ref="kgpz:from" />
<xsd:attributeGroup ref="kgpz:to" />
</xsd:attributeGroup>
<xsd:complexType name="date">
<xsd:annotation>
<xsd:documentation>(date) contains a date in any format.</xsd:documentation>
</xsd:annotation>
<xsd:attributeGroup ref="kgpz:dateattributes"/>
<xsd:attributeGroup ref="kgpz:dateattributes" />
</xsd:complexType>
<xsd:attributeGroup name="when">
<xsd:attribute name="when">
<xsd:annotation>
<xsd:documentation>supplies the value of the date or time in a standard form, e.g. yyyy-mm-dd.</xsd:documentation>
<xsd:documentation>supplies the value of the date or time in a standard form, e.g.
yyyy-mm-dd.</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:union memberTypes="xsd:date xsd:gYear xsd:gMonth xsd:gDay xsd:gYearMonth xsd:gMonthDay xsd:time xsd:dateTime"/>
<xsd:union
memberTypes="xsd:date xsd:gYear xsd:gMonth xsd:gDay xsd:gYearMonth xsd:gMonthDay xsd:time xsd:dateTime" />
</xsd:simpleType>
</xsd:attribute>
</xsd:attributeGroup>
<xsd:attributeGroup name="notBefore">
<xsd:attribute name="notBefore">
<xsd:annotation>
<xsd:documentation>specifies the earliest possible date for the event in standard form, e.g. yyyy-mm-dd.</xsd:documentation>
<xsd:documentation>specifies the earliest possible date for the event in standard form, e.g.
yyyy-mm-dd.</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:union memberTypes="xsd:date xsd:gYear xsd:gMonth xsd:gDay xsd:gYearMonth xsd:gMonthDay xsd:time xsd:dateTime"/>
<xsd:union
memberTypes="xsd:date xsd:gYear xsd:gMonth xsd:gDay xsd:gYearMonth xsd:gMonthDay xsd:time xsd:dateTime" />
</xsd:simpleType>
</xsd:attribute>
</xsd:attributeGroup>
<xsd:attributeGroup name="notAfter">
<xsd:attribute name="notAfter">
<xsd:annotation>
<xsd:documentation>specifies the latest possible date for the event in standard form, e.g. yyyy-mm-dd.</xsd:documentation>
<xsd:documentation>specifies the latest possible date for the event in standard form, e.g.
yyyy-mm-dd.</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:union memberTypes="xsd:date xsd:gYear xsd:gMonth xsd:gDay xsd:gYearMonth xsd:gMonthDay xsd:time xsd:dateTime"/>
<xsd:union
memberTypes="xsd:date xsd:gYear xsd:gMonth xsd:gDay xsd:gYearMonth xsd:gMonthDay xsd:time xsd:dateTime" />
</xsd:simpleType>
</xsd:attribute>
</xsd:attributeGroup>
<xsd:attributeGroup name="from">
<xsd:attribute name="from">
<xsd:annotation>
<xsd:documentation>indicates the starting point of the period in standard form, e.g. yyyy-mm-dd.</xsd:documentation>
<xsd:documentation>indicates the starting point of the period in standard form, e.g.
yyyy-mm-dd.</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:union memberTypes="xsd:date xsd:gYear xsd:gMonth xsd:gDay xsd:gYearMonth xsd:gMonthDay xsd:time xsd:dateTime"/>
<xsd:union
memberTypes="xsd:date xsd:gYear xsd:gMonth xsd:gDay xsd:gYearMonth xsd:gMonthDay xsd:time xsd:dateTime" />
</xsd:simpleType>
</xsd:attribute>
</xsd:attributeGroup>
<xsd:attributeGroup name="to">
<xsd:attribute name="to">
<xsd:annotation>
<xsd:documentation>indicates the ending point of the period in standard form, e.g. yyyy-mm-dd.</xsd:documentation>
<xsd:documentation>indicates the ending point of the period in standard form, e.g.
yyyy-mm-dd.</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:union memberTypes="xsd:date xsd:gYear xsd:gMonth xsd:gDay xsd:gYearMonth xsd:gMonthDay xsd:time xsd:dateTime"/>
<xsd:union
memberTypes="xsd:date xsd:gYear xsd:gMonth xsd:gDay xsd:gYearMonth xsd:gMonthDay xsd:time xsd:dateTime" />
</xsd:simpleType>
</xsd:attribute>
</xsd:attributeGroup>
</xsd:schema>
</xsd:schema>