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 date/time data types
|
---|
6 | </xsd:documentation>
|
---|
7 | </xsd:annotation>
|
---|
8 | <xsd:element name="date">
|
---|
9 | <xsd:complexType>
|
---|
10 | <xsd:sequence>
|
---|
11 | <xsd:choice minOccurs="1" maxOccurs="unbounded">
|
---|
12 | <xsd:element name="time" type="xsd:time"/>
|
---|
13 | <xsd:element name="time1">
|
---|
14 | <xsd:simpleType>
|
---|
15 | <xsd:restriction base="xsd:time">
|
---|
16 | <xsd:maxInclusive value="23:59:59.9999999"/>
|
---|
17 | <xsd:minInclusive value="00:00:00"/>
|
---|
18 | </xsd:restriction>
|
---|
19 | </xsd:simpleType>
|
---|
20 | </xsd:element>
|
---|
21 | <xsd:element name="time2">
|
---|
22 | <xsd:simpleType>
|
---|
23 | <xsd:restriction base="xsd:time">
|
---|
24 | <xsd:maxInclusive value="13:50:50"/>
|
---|
25 | <xsd:minInclusive value="12:00:00"/>
|
---|
26 | </xsd:restriction>
|
---|
27 | </xsd:simpleType>
|
---|
28 | </xsd:element>
|
---|
29 | <xsd:element name="date1">
|
---|
30 | <xsd:simpleType>
|
---|
31 | <xsd:restriction base="xsd:date">
|
---|
32 | <xsd:maxExclusive value="2002-05-19"/>
|
---|
33 | <xsd:minExclusive value="1996-05-19"/>
|
---|
34 | </xsd:restriction>
|
---|
35 | </xsd:simpleType>
|
---|
36 | </xsd:element>
|
---|
37 | <xsd:element name="date2">
|
---|
38 | <xsd:simpleType>
|
---|
39 | <xsd:restriction base="xsd:date">
|
---|
40 | <xsd:maxInclusive value="2002-05-19Z"/>
|
---|
41 | <xsd:minInclusive value="1996-05-19Z"/>
|
---|
42 | </xsd:restriction>
|
---|
43 | </xsd:simpleType>
|
---|
44 | </xsd:element>
|
---|
45 | <xsd:element name="dt1">
|
---|
46 | <xsd:simpleType>
|
---|
47 | <xsd:restriction base="xsd:dateTime">
|
---|
48 | <xsd:maxExclusive value="2002-01-01T00:00:00Z"/>
|
---|
49 | <xsd:minExclusive value="1970-01-01T00:00:00Z"/>
|
---|
50 | </xsd:restriction>
|
---|
51 | </xsd:simpleType>
|
---|
52 | </xsd:element>
|
---|
53 | <xsd:element name="dt2">
|
---|
54 | <xsd:simpleType>
|
---|
55 | <xsd:restriction base="xsd:dateTime">
|
---|
56 | <xsd:maxInclusive value="2003-05-01T00:00:00Z"/>
|
---|
57 | <xsd:minInclusive value="1996-05-19T21:30:00Z"/>
|
---|
58 | </xsd:restriction>
|
---|
59 | </xsd:simpleType>
|
---|
60 | </xsd:element>
|
---|
61 | <xsd:element name="hol" type="holidays"/>
|
---|
62 | <xsd:element name="year1">
|
---|
63 | <xsd:simpleType>
|
---|
64 | <xsd:restriction base="xsd:gYear">
|
---|
65 | <xsd:maxInclusive value="2003Z"/>
|
---|
66 | <xsd:minInclusive value="1996Z"/>
|
---|
67 | </xsd:restriction>
|
---|
68 | </xsd:simpleType>
|
---|
69 | </xsd:element>
|
---|
70 | <xsd:element name="yearmon1">
|
---|
71 | <xsd:simpleType>
|
---|
72 | <xsd:restriction base="xsd:gYearMonth">
|
---|
73 | <xsd:maxInclusive value="2003-05Z"/>
|
---|
74 | <xsd:minInclusive value="1996-05Z"/>
|
---|
75 | </xsd:restriction>
|
---|
76 | </xsd:simpleType>
|
---|
77 | </xsd:element>
|
---|
78 | <xsd:element name="mon1">
|
---|
79 | <xsd:simpleType>
|
---|
80 | <xsd:restriction base="xsd:gMonth">
|
---|
81 | <xsd:minInclusive value="--01Z"/>
|
---|
82 | <xsd:maxInclusive value="--05Z"/>
|
---|
83 | </xsd:restriction>
|
---|
84 | </xsd:simpleType>
|
---|
85 | </xsd:element>
|
---|
86 | <xsd:element name="day1">
|
---|
87 | <xsd:simpleType>
|
---|
88 | <xsd:restriction base="xsd:gDay">
|
---|
89 | <xsd:minInclusive value="---28"/>
|
---|
90 | <xsd:maxInclusive value="---31"/>
|
---|
91 | </xsd:restriction>
|
---|
92 | </xsd:simpleType>
|
---|
93 | </xsd:element>
|
---|
94 | <xsd:element name="monthday1" type="xsd:gMonthDay"/>
|
---|
95 | </xsd:choice>
|
---|
96 | </xsd:sequence>
|
---|
97 | </xsd:complexType>
|
---|
98 | </xsd:element>
|
---|
99 | <xsd:simpleType name='holidays'>
|
---|
100 | <xsd:annotation>
|
---|
101 | <xsd:documentation>some US holidays</xsd:documentation>
|
---|
102 | </xsd:annotation>
|
---|
103 | <xsd:restriction base='xsd:gMonthDay'>
|
---|
104 | <xsd:enumeration value='--01-01'>
|
---|
105 | <xsd:annotation>
|
---|
106 | <xsd:documentation>New Year's day</xsd:documentation>
|
---|
107 | </xsd:annotation>
|
---|
108 | </xsd:enumeration>
|
---|
109 | <xsd:enumeration value='--07-04'>
|
---|
110 | <xsd:annotation>
|
---|
111 | <xsd:documentation>4th of July</xsd:documentation>
|
---|
112 | </xsd:annotation>
|
---|
113 | </xsd:enumeration>
|
---|
114 | <xsd:enumeration value='--12-25'>
|
---|
115 | <xsd:annotation>
|
---|
116 | <xsd:documentation>Christmas</xsd:documentation>
|
---|
117 | </xsd:annotation>
|
---|
118 | </xsd:enumeration>
|
---|
119 | </xsd:restriction>
|
---|
120 | </xsd:simpleType>
|
---|
121 | </xsd:schema>
|
---|
122 |
|
---|