summaryrefslogtreecommitdiff
path: root/test/testcases/tests/level3/ls/files/datatype_normalization.xsd
blob: 2b3a789fb7b794c35f2a57022f008d85bbd4087a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<!--

Copyright (c) 2001-2004 World Wide Web Consortium, 
(Massachusetts Institute of Technology, Institut National de
Recherche en Informatique et en Automatique, Keio University).  All 
Rights Reserved.  This program is distributed under the W3C's Software
Intellectual Property License.  This program is distributed in the 
hope that it will be useful, but WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE.  

See W3C License http://www.w3.org/Consortium/Legal/ for more details.

-->


<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
	targetNamespace="http://www.w3.org/2001/DOM-Test-Suite/Level-3/datatype_normalization"
	xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-3/datatype_normalization">

  <xsd:element name="data">
  	  <xsd:complexType>
  	  		<xsd:choice minOccurs="0" maxOccurs="unbounded">
  	  	  		<xsd:element ref="double"/>
  	  	  		<xsd:element ref="boolean"/>
  	  	  		<xsd:element ref="decimal"/>
  	  	  		<xsd:element ref="float"/>
  	  	  		<xsd:element ref="dateTime"/>
  	  	  		<xsd:element ref="time"/>
  	  		</xsd:choice>
  	  </xsd:complexType>
  </xsd:element>
  
  <xsd:simpleType name="myDouble">
  	<xsd:restriction base="xsd:double"/>
  </xsd:simpleType>

  <xsd:simpleType name="myDoubleList">
  	<xsd:list itemType="myDouble"/>
  </xsd:simpleType>

  <xsd:simpleType name="myDoubleUnion">
  	<xsd:union memberTypes="myDouble xsd:anyURI"/>
  </xsd:simpleType>

  <xsd:element name="double">
  	  <xsd:complexType>
  	  	  <xsd:simpleContent>
  	  	  	  <xsd:extension base="myDoubleList">
  	  	  	  		<xsd:attribute name="value" type="myDouble" use="required"/>
  	  	  	  		<xsd:attribute name="union" type="myDoubleUnion" use="required"/>
  	  	  	  		<xsd:attribute name="default" type="myDouble" 
  	  	  	  			default="+0003.141592600E+0000" use="optional"/>
  	  	  	  </xsd:extension>
  	  	  </xsd:simpleContent>
  	  </xsd:complexType>
  </xsd:element>
  	  	  	  

  <xsd:simpleType name="myBoolean">
  	<xsd:restriction base="xsd:boolean"/>
  </xsd:simpleType>

  <xsd:simpleType name="myBooleanList">
  	<xsd:list itemType="myBoolean"/>
  </xsd:simpleType>

  <xsd:simpleType name="myBooleanUnion">
  	<xsd:union memberTypes="myBoolean xsd:anyURI"/>
  </xsd:simpleType>

  <xsd:element name="boolean">
  	  <xsd:complexType>
  	  	  <xsd:simpleContent>
  	  	  	  <xsd:extension base="myBooleanList">
  	  	  	  		<xsd:attribute name="value" type="myBoolean" use="required"/>
  	  	  	  		<xsd:attribute name="union" type="myDoubleUnion" use="required"/>
  	  	  	  		<xsd:attribute name="default" type="myBoolean" 
  	  	  	  			default="1" use="optional"/>
  	  	  	  </xsd:extension>
  	  	  </xsd:simpleContent>
  	  </xsd:complexType>
  </xsd:element>


  <xsd:simpleType name="myDecimal">
  	<xsd:restriction base="xsd:decimal"/>
  </xsd:simpleType>

  <xsd:simpleType name="myDecimalList">
  	<xsd:list itemType="myDecimal"/>
  </xsd:simpleType>

  <xsd:simpleType name="myDecimalUnion">
  	<xsd:union memberTypes="myDecimal xsd:anyURI"/>
  </xsd:simpleType>

  <xsd:element name="decimal">
  	  <xsd:complexType>
  	  	  <xsd:simpleContent>
  	  	  	  <xsd:extension base="myDecimalList">
  	  	  	  		<xsd:attribute name="value" type="myDecimal" use="required"/>
  	  	  	  		<xsd:attribute name="union" type="myDecimalUnion" use="required"/>
  	  	  	  		<xsd:attribute name="default" type="myDecimal" 
  	  	  	  			default="+0003.141592600" use="optional"/>
  	  	  	  </xsd:extension>
  	  	  </xsd:simpleContent>
  	  </xsd:complexType>
  </xsd:element>

  <xsd:simpleType name="myFloat">
  	<xsd:restriction base="xsd:float"/>
  </xsd:simpleType>

  <xsd:simpleType name="myFloatList">
  	<xsd:list itemType="myFloat"/>
  </xsd:simpleType>

  <xsd:simpleType name="myFloatUnion">
  	<xsd:union memberTypes="myFloat xsd:anyURI"/>
  </xsd:simpleType>

  <xsd:element name="float">
  	  <xsd:complexType>
  	  	  <xsd:simpleContent>
  	  	  	  <xsd:extension base="myFloatList">
  	  	  	  		<xsd:attribute name="value" type="myFloat" use="required"/>
  	  	  	  		<xsd:attribute name="union" type="myFloatUnion" use="required"/>
  	  	  	  		<xsd:attribute name="default" type="myDouble" 
  	  	  	  			default="+0003.141592600E+0000" use="optional"/>
  	  	  	  </xsd:extension>
  	  	  </xsd:simpleContent>
  	  </xsd:complexType>
  </xsd:element>


  <xsd:simpleType name="myDateTime">
  	<xsd:restriction base="xsd:dateTime"/>
  </xsd:simpleType>

  <xsd:simpleType name="myDateTimeList">
  	<xsd:list itemType="myDateTime"/>
  </xsd:simpleType>

  <xsd:simpleType name="myDateTimeUnion">
  	<xsd:union memberTypes="myDateTime xsd:anyURI"/>
  </xsd:simpleType>

  <xsd:element name="dateTime">
  	  <xsd:complexType>
  	  	  <xsd:simpleContent>
  	  	  	  <xsd:extension base="myDateTimeList">
  	  	  	  		<xsd:attribute name="value" type="myDateTime" use="required"/>
  	  	  	  		<xsd:attribute name="union" type="myDateTimeUnion" use="required"/>
  	  	  	  		<xsd:attribute name="default" type="myDateTime" 
  	  	  	  			default="2004-01-21T15:30:00-05:00" use="optional"/>
  	  	  	  </xsd:extension>
  	  	  </xsd:simpleContent>
  	  </xsd:complexType>
  </xsd:element>


  <xsd:simpleType name="myTime">
  	<xsd:restriction base="xsd:time"/>
  </xsd:simpleType>

  <xsd:simpleType name="myTimeList">
  	<xsd:list itemType="myTime"/>
  </xsd:simpleType>

  <xsd:simpleType name="myTimeUnion">
  	<xsd:union memberTypes="myTime xsd:anyURI"/>
  </xsd:simpleType>

  <xsd:element name="time">
  	  <xsd:complexType>
  	  	  <xsd:simpleContent>
  	  	  	  <xsd:extension base="myTimeList">
  	  	  	  		<xsd:attribute name="value" type="myTime" use="required"/>
  	  	  	  		<xsd:attribute name="union" type="myTimeUnion" use="required"/>
  	  	  	  		<xsd:attribute name="default" type="myTime" 
  	  	  	  			default="15:30:00-05:00" use="optional"/>
  	  	  	  </xsd:extension>
  	  	  </xsd:simpleContent>
  	  </xsd:complexType>
  </xsd:element>


  <xsd:simpleType name="myUnion">
  	<xsd:union memberTypes="xsd:integer xsd:string"/>
  </xsd:simpleType>

  <xsd:simpleType name="myUnionList">
  	<xsd:list itemType="myUnion"/>
  </xsd:simpleType>

  <xsd:simpleType name="myUnionUnion">
  	<xsd:union memberTypes="myUnion xsd:anyURI"/>
  </xsd:simpleType>

  <xsd:element name="union">
  	  <xsd:complexType>
  	  	  <xsd:simpleContent>
  	  	  	  <xsd:extension base="myUnionList">
  	  	  	  		<xsd:attribute name="value" type="myUnion" use="required"/>
  	  	  	  		<xsd:attribute name="union" type="myUnionUnion" use="required"/>
  	  	  	  </xsd:extension>
  	  	  </xsd:simpleContent>
  	  </xsd:complexType>
  </xsd:element>

</xsd:schema>