mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
Use enumeration in xsd
This commit is contained in:
parent
63860ec05b
commit
dfee01d754
@ -107,22 +107,51 @@
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:complexType>
|
||||
<xs:simpleType name="dateDescriptor" final="restriction">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Created">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date resource was created.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="Published">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date resource was first published.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="Revised">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date resource was most recently revised.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="Superseded">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date resource was superseded.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:attributeGroup name="dateAttrs">
|
||||
<xs:attribute name="type" type="rm:dateDescriptor" use="required">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date type.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="value" type="xs:dateTime" use="required">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Associated datetime value.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:attributeGroup>
|
||||
<xs:complexType name="dateType">
|
||||
<xs:attributeGroup ref="rm:dateAttrs"/>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="datesType">
|
||||
<xs:sequence>
|
||||
<xs:element name="date" maxOccurs="unbounded">
|
||||
<xs:element name="date" maxOccurs="unbounded" type="rm:dateType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>A dates associated with a resource.</xs:documentation>
|
||||
<xs:documentation>A date associated with a resource.</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:attribute name="type" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Date type, valid values are Created, Published, Revised, Superseded.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="value" type="xs:dateTime">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Associated datetime value.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
Loading…
x
Reference in New Issue
Block a user