Daniel Veillard | 5a87241 | 2002-05-22 06:40:27 +0000 | [diff] [blame^] | 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:maxInclusive value="--01--Z"/> |
| 82 | <xsd:minInclusive value="--05--Z"/> |
| 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:maxInclusive value="---28"/> |
| 90 | <xsd:minInclusive value="---31"/> |
| 91 | </xsd:restriction> |
| 92 | </xsd:simpleType> |
| 93 | </xsd:element> |
| 94 | </xsd:choice> |
| 95 | </xsd:sequence> |
| 96 | </xsd:complexType> |
| 97 | </xsd:element> |
| 98 | <xsd:simpleType name='holidays'> |
| 99 | <xsd:annotation> |
| 100 | <xsd:documentation>some US holidays</xsd:documentation> |
| 101 | </xsd:annotation> |
| 102 | <xsd:restriction base='xsd:gMonthDay'> |
| 103 | <xsd:enumeration value='--01-01'> |
| 104 | <xsd:annotation> |
| 105 | <xsd:documentation>New Year's day</xsd:documentation> |
| 106 | </xsd:annotation> |
| 107 | </xsd:enumeration> |
| 108 | <xsd:enumeration value='--07-04'> |
| 109 | <xsd:annotation> |
| 110 | <xsd:documentation>4th of July</xsd:documentation> |
| 111 | </xsd:annotation> |
| 112 | </xsd:enumeration> |
| 113 | <xsd:enumeration value='--12-25'> |
| 114 | <xsd:annotation> |
| 115 | <xsd:documentation>Christmas</xsd:documentation> |
| 116 | </xsd:annotation> |
| 117 | </xsd:enumeration> |
| 118 | </xsd:restriction> |
| 119 | </xsd:simpleType> |
| 120 | </xsd:schema> |
| 121 | |