You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
2.5 KiB
73 lines
2.5 KiB
4 months ago
|
<?xml version="1.0"?>
|
||
|
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||
|
<xsd:annotation>
|
||
|
<xsd:documentation xml:lang="en">
|
||
|
Testing duration data types
|
||
|
</xsd:documentation>
|
||
|
</xsd:annotation>
|
||
|
<xsd:element name="duration">
|
||
|
<xsd:complexType>
|
||
|
<xsd:sequence>
|
||
|
<xsd:choice minOccurs="1" maxOccurs="unbounded">
|
||
|
<xsd:element name="second1">
|
||
|
<xsd:simpleType>
|
||
|
<xsd:restriction base="xsd:duration">
|
||
|
<xsd:maxExclusive value="PT1S"/>
|
||
|
<xsd:minExclusive value="PT0.1S"/>
|
||
|
</xsd:restriction>
|
||
|
</xsd:simpleType>
|
||
|
</xsd:element>
|
||
|
<xsd:element name="second2">
|
||
|
<xsd:simpleType>
|
||
|
<xsd:restriction base="xsd:duration">
|
||
|
<xsd:maxInclusive value="PT1S"/>
|
||
|
<xsd:minInclusive value="PT0.1S"/>
|
||
|
</xsd:restriction>
|
||
|
</xsd:simpleType>
|
||
|
</xsd:element>
|
||
|
<xsd:element name="month1">
|
||
|
<xsd:simpleType>
|
||
|
<xsd:restriction base="xsd:duration">
|
||
|
<xsd:maxExclusive value="P1M"/>
|
||
|
<xsd:minExclusive value="P0M"/>
|
||
|
</xsd:restriction>
|
||
|
</xsd:simpleType>
|
||
|
</xsd:element>
|
||
|
<xsd:element name="month2">
|
||
|
<xsd:simpleType>
|
||
|
<xsd:restriction base="xsd:duration">
|
||
|
<xsd:maxInclusive value="P1M"/>
|
||
|
<xsd:minInclusive value="P0M"/>
|
||
|
</xsd:restriction>
|
||
|
</xsd:simpleType>
|
||
|
</xsd:element>
|
||
|
<xsd:element name="month3" type="MSD"/>
|
||
|
<xsd:element name="year1">
|
||
|
<xsd:simpleType>
|
||
|
<xsd:restriction base="xsd:duration">
|
||
|
<xsd:maxExclusive value="P2Y"/>
|
||
|
<xsd:minExclusive value="P1Y"/>
|
||
|
</xsd:restriction>
|
||
|
</xsd:simpleType>
|
||
|
</xsd:element>
|
||
|
<xsd:element name="year2">
|
||
|
<xsd:simpleType>
|
||
|
<xsd:restriction base="xsd:duration">
|
||
|
<xsd:maxInclusive value="P2Y"/>
|
||
|
<xsd:minInclusive value="P1Y"/>
|
||
|
</xsd:restriction>
|
||
|
</xsd:simpleType>
|
||
|
</xsd:element>
|
||
|
</xsd:choice>
|
||
|
</xsd:sequence>
|
||
|
</xsd:complexType>
|
||
|
</xsd:element>
|
||
|
<xsd:simpleType name="MSD">
|
||
|
<xsd:restriction base="xsd:duration">
|
||
|
<xsd:maxExclusive value="PT24H"/>
|
||
|
<xsd:minExclusive value="-PT24H"/>
|
||
|
</xsd:restriction>
|
||
|
</xsd:simpleType>
|
||
|
</xsd:schema>
|
||
|
|