1 | <?xml version="1.0"?>
|
---|
2 | <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
---|
3 | <xsd:annotation>
|
---|
4 | <xsd:documentation xml:lang="en">
|
---|
5 | Testing duration data types
|
---|
6 | </xsd:documentation>
|
---|
7 | </xsd:annotation>
|
---|
8 | <xsd:element name="duration">
|
---|
9 | <xsd:complexType>
|
---|
10 | <xsd:sequence>
|
---|
11 | <xsd:choice minOccurs="1" maxOccurs="unbounded">
|
---|
12 | <xsd:element name="second1">
|
---|
13 | <xsd:simpleType>
|
---|
14 | <xsd:restriction base="xsd:duration">
|
---|
15 | <xsd:maxExclusive value="PT1S"/>
|
---|
16 | <xsd:minExclusive value="PT0.1S"/>
|
---|
17 | </xsd:restriction>
|
---|
18 | </xsd:simpleType>
|
---|
19 | </xsd:element>
|
---|
20 | <xsd:element name="second2">
|
---|
21 | <xsd:simpleType>
|
---|
22 | <xsd:restriction base="xsd:duration">
|
---|
23 | <xsd:maxInclusive value="PT1S"/>
|
---|
24 | <xsd:minInclusive value="PT0.1S"/>
|
---|
25 | </xsd:restriction>
|
---|
26 | </xsd:simpleType>
|
---|
27 | </xsd:element>
|
---|
28 | <xsd:element name="month1">
|
---|
29 | <xsd:simpleType>
|
---|
30 | <xsd:restriction base="xsd:duration">
|
---|
31 | <xsd:maxExclusive value="P1M"/>
|
---|
32 | <xsd:minExclusive value="P0M"/>
|
---|
33 | </xsd:restriction>
|
---|
34 | </xsd:simpleType>
|
---|
35 | </xsd:element>
|
---|
36 | <xsd:element name="month2">
|
---|
37 | <xsd:simpleType>
|
---|
38 | <xsd:restriction base="xsd:duration">
|
---|
39 | <xsd:maxInclusive value="P1M"/>
|
---|
40 | <xsd:minInclusive value="P0M"/>
|
---|
41 | </xsd:restriction>
|
---|
42 | </xsd:simpleType>
|
---|
43 | </xsd:element>
|
---|
44 | <xsd:element name="month3" type="MSD"/>
|
---|
45 | <xsd:element name="year1">
|
---|
46 | <xsd:simpleType>
|
---|
47 | <xsd:restriction base="xsd:duration">
|
---|
48 | <xsd:maxExclusive value="P2Y"/>
|
---|
49 | <xsd:minExclusive value="P1Y"/>
|
---|
50 | </xsd:restriction>
|
---|
51 | </xsd:simpleType>
|
---|
52 | </xsd:element>
|
---|
53 | <xsd:element name="year2">
|
---|
54 | <xsd:simpleType>
|
---|
55 | <xsd:restriction base="xsd:duration">
|
---|
56 | <xsd:maxInclusive value="P2Y"/>
|
---|
57 | <xsd:minInclusive value="P1Y"/>
|
---|
58 | </xsd:restriction>
|
---|
59 | </xsd:simpleType>
|
---|
60 | </xsd:element>
|
---|
61 | </xsd:choice>
|
---|
62 | </xsd:sequence>
|
---|
63 | </xsd:complexType>
|
---|
64 | </xsd:element>
|
---|
65 | <xsd:simpleType name="MSD">
|
---|
66 | <xsd:restriction base="xsd:duration">
|
---|
67 | <xsd:maxExclusive value="PT24H"/>
|
---|
68 | <xsd:minExclusive value="-PT24H"/>
|
---|
69 | </xsd:restriction>
|
---|
70 | </xsd:simpleType>
|
---|
71 | </xsd:schema>
|
---|
72 |
|
---|