Debian Codegraph @

gavo/resources/schemata/VOTable-1.2.xsd

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--W3C Schema for VOTable = Virtual Observatory Tabular Format
3 .Version 1.0 : 15-Apr-2002
4 .Version 1.09: 23-Jan-2004 Version 1.09
5 .Version 1.09: 30-Jan-2004 Version 1.091
6 .Version 1.09: 22-Mar-2004 Version 1.092
7 .Version 1.094: 02-Jun-2004 GROUP does not contain FIELD
8 .Version 1.1 : 10-Jun-2004 remove the complexContent
9 .Version 1.11: GL: 23-May-2006 remove most root elements, use name= type= iso ref= structure
10 .Version 1.11: GL: 29-Aug-2006 review and added comments (prefixed by GL)
11 before sending to Francois Ochsenbein
12 .Version 1.12: FO: Preliminary Version 1.2
13 .Version 1.18: FO: Tested (jax) version 1.2
14 .Version 1.19: FO: Completed INFO attributes
15 .Version 1.20: FO: Added xtype; content-role is less restrictive (May2009)
16 .Version 1.20a: FO: PR-20090710 Cosmetics.
17 .Version 1.20b: FO: INFO does not accept sub-elements (2009-09-29)
18 .Version 1.20c: FO: elementFormDefault="qualified" to stay compatible with 1.1
19 -->
20 <xs:schema
21 xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
22 xmlns="http://www.ivoa.net/xml/VOTable/v1.2"
23 targetNamespace="http://www.ivoa.net/xml/VOTable/v1.2"
24 >
25 <xs:annotation><xs:documentation>
26 VOTable1.2 is meant to serialize tabular documents in the
27 context of Virtual Observatory applications. This schema
28 corresponds to the VOTable document available from
29 http://www.ivoa.net/Documents/latest/VOT.html
30 </xs:documentation></xs:annotation>
31
32 <!-- Here we define some interesting new datatypes:
33 - anyTEXT may have embedded XHTML (conforming HTML)
34 - astroYear is an epoch in Besselian or Julian year, e.g. J2000
35 - arrayDEF specifies an array size e.g. 12x23x*
36 - dataType defines the acceptable datatypes
37 - ucdType defines the acceptable UCDs (UCD1+)
38 - precType defines the acceptable precisions
39 - yesno defines just the 2 alternatives
40 -->
41
42 <xs:complexType name="anyTEXT" mixed="true">
43 <xs:sequence>
44 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
45 </xs:sequence>
46 </xs:complexType>
47
48 <xs:simpleType name="astroYear">
49 <xs:restriction base="xs:token">
50 <xs:pattern value="[JB]?[0-9]+([.][0-9]*)?"/>
51 </xs:restriction>
52 </xs:simpleType>
53
54 <xs:simpleType name="ucdType">
55 <xs:restriction base="xs:token">
56 <xs:annotation><xs:documentation>
57 Accept UCD1+
58 Accept also old UCD1 (but not / + %) including SIAP convention (with :)
59 </xs:documentation></xs:annotation>
60 <xs:pattern value="[A-Za-z0-9_.:;\-]*"/><!-- UCD1 use also / + % -->
61 </xs:restriction>
62 </xs:simpleType>
63
64 <xs:simpleType name="arrayDEF">
65 <xs:restriction base="xs:token">
66 <xs:pattern value="([0-9]+x)*[0-9]*[*]?(s\W)?"/>
67 </xs:restriction>
68 </xs:simpleType>
69
70 <xs:simpleType name="encodingType">
71 <xs:restriction base="xs:NMTOKEN">
72 <xs:enumeration value="gzip"/>
73 <xs:enumeration value="base64"/>
74 <xs:enumeration value="dynamic"/>
75 <xs:enumeration value="none"/>
76 </xs:restriction>
77 </xs:simpleType>
78
79 <xs:simpleType name="dataType">
80 <xs:restriction base="xs:NMTOKEN">
81 <xs:enumeration value="boolean"/>
82 <xs:enumeration value="bit"/>
83 <xs:enumeration value="unsignedByte"/>
84 <xs:enumeration value="short"/>
85 <xs:enumeration value="int"/>
86 <xs:enumeration value="long"/>
87 <xs:enumeration value="char"/>
88 <xs:enumeration value="unicodeChar"/>
89 <xs:enumeration value="float"/>
90 <xs:enumeration value="double"/>
91 <xs:enumeration value="floatComplex"/>
92 <xs:enumeration value="doubleComplex"/>
93 </xs:restriction>
94 </xs:simpleType>
95
96 <xs:simpleType name="precType">
97 <xs:restriction base="xs:token">
98 <xs:pattern value="[EF]?[1-9][0-9]*"/>
99 </xs:restriction>
100 </xs:simpleType>
101
102 <xs:simpleType name="yesno">
103 <xs:restriction base="xs:NMTOKEN">
104 <xs:enumeration value="yes"/>
105 <xs:enumeration value="no"/>
106 </xs:restriction>
107 </xs:simpleType>
108
109 <xs:complexType name="Min">
110 <xs:attribute name="value" type="xs:string" use="required"/>
111 <xs:attribute name="inclusive" type="yesno" default="yes"/>
112 </xs:complexType>
113 <xs:complexType name="Max">
114 <xs:attribute name="value" type="xs:string" use="required"/>
115 <xs:attribute name="inclusive" type="yesno" default="yes"/>
116 </xs:complexType>
117 <xs:complexType name="Option">
118 <xs:sequence>
119 <xs:element name="OPTION" type="Option" minOccurs="0" maxOccurs="unbounded"/>
120 </xs:sequence>
121 <xs:attribute name="name" type="xs:token"/>
122 <xs:attribute name="value" type="xs:string" use="required"/>
123 </xs:complexType>
124
125 <!-- VALUES expresses the values that can be taken by the data
126 in a column or by a parameter
127 -->
128 <xs:complexType name="Values">
129 <xs:sequence>
130 <xs:element name="MIN" type="Min" minOccurs="0"/>
131 <xs:element name="MAX" type="Max" minOccurs="0"/>
132 <xs:element name="OPTION" type="Option" minOccurs="0" maxOccurs="unbounded"/>
133 </xs:sequence>
134 <xs:attribute name="ID" type="xs:ID"/>
135 <xs:attribute name="type" default="legal">
136 <xs:simpleType>
137 <xs:restriction base="xs:NMTOKEN">
138 <xs:enumeration value="legal"/>
139 <xs:enumeration value="actual"/>
140 </xs:restriction>
141 </xs:simpleType>
142 </xs:attribute>
143 <xs:attribute name="null" type="xs:token"/>
144 <xs:attribute name="ref" type="xs:IDREF"/>
145 <!-- xs:attribute name="invalid" type="yesno" default="no"/ -->
146 </xs:complexType>
147
148 <!-- The LINK is a URL (href) or some other kind of reference (gref) -->
149 <xs:complexType name="Link">
150 <xs:annotation><xs:documentation>
151 content-role was previously restricted as: <![CDATA[
152 <xs:attribute name="content-role">
153 <xs:simpleType>
154 <xs:restriction base="xs:NMTOKEN">
155 <xs:enumeration value="query"/>
156 <xs:enumeration value="hints"/>
157 <xs:enumeration value="doc"/>
158 <xs:enumeration value="location"/>
159 </xs:restriction>
160 </xs:simpleType>
161 </xs:attribute>]]>; is now a name token.
162 </xs:documentation></xs:annotation>
163 <xs:attribute name="ID" type="xs:ID"/>
164 <xs:attribute name="content-role" type="xs:NMTOKEN"/>
165 <xs:attribute name="content-type" type="xs:NMTOKEN"/>
166 <xs:attribute name="title" type="xs:string"/>
167 <xs:attribute name="value" type="xs:string"/>
168 <xs:attribute name="href" type="xs:anyURI"/>
169 <xs:attribute name="gref" type="xs:token"/><!-- Deprecated in V1.1 -->
170 <xs:attribute name="action" type="xs:anyURI"/>
171 </xs:complexType>
172
173 <!-- INFO is defined in Version 1.2 as a PARAM of String type
174 <xs:complexType name="Info">
175 <xs:complexContent>
176 <xs:restriction base="Param">
177 <xs:attribute name="unit" fixed=""/>
178 <xs:attribute name="datatype" fixed="char"/>
179 <xs:attribute name="arraysize" fixed="*"/>
180 </xs:restriction>
181 </xs:complexContent>
182 </xs:complexType>
183 -or- as a full definition:
184 <xs:complexType name="Info">
185 <xs:sequence>
186 <xs:element name="DESCRIPTION" type="anyTEXT" minOccurs="0"/>
187 <xs:element name="VALUES" type="Values" minOccurs="0"/>
188 <xs:element name="LINK" type="Link" minOccurs="0" maxOccurs="unbounded"/>
189 </xs:sequence>
190 <xs:attribute name="name" type="xs:token" use="required"/>
191 <xs:attribute name="value" type="xs:string" use="required"/>
192 <xs:attribute name="ID" type="xs:ID"/>
193 <xs:attribute name="unit" type="xs:token"/>
194 <xs:attribute name="xtype" type="xs:token"/>
195 <xs:attribute name="ref" type="xs:IDREF"/>
196 <xs:attribute name="ucd" type="ucdType"/>
197 <xs:attribute name="utype" type="xs:string"/>
198 </xs:complexType>
199 -->
200 <!-- No sub-element is accepted in INFO for backward compatibility -->
201 <xs:complexType name="Info">
202 <xs:simpleContent>
203 <xs:extension base="xs:string">
204 <xs:attribute name="ID" type="xs:ID"/>
205 <xs:attribute name="name" type="xs:token" use="required"/>
206 <xs:attribute name="value" type="xs:string" use="required"/>
207 <xs:attribute name="unit" type="xs:token"/>
208 <xs:attribute name="xtype" type="xs:token"/>
209 <xs:attribute name="ref" type="xs:IDREF"/>
210 <xs:attribute name="ucd" type="ucdType"/>
211 <xs:attribute name="utype" type="xs:string"/>
212 </xs:extension>
213 </xs:simpleContent>
214 </xs:complexType>
215
216 <!-- Expresses the coordinate system we are using --><!-- Deprecated V1.2 -->
217 <xs:complexType name="CoordinateSystem">
218 <xs:annotation><xs:documentation>
219 Deprecated in Version 1.2
220 </xs:documentation></xs:annotation>
221 <xs:simpleContent>
222 <xs:extension base="xs:string">
223 <xs:attribute name="ID" type="xs:ID" use="required"/>
224 <xs:attribute name="equinox" type="astroYear"/>
225 <xs:attribute name="epoch" type="astroYear"/>
226 <xs:attribute name="system" default="eq_FK5">
227 <xs:simpleType>
228 <xs:restriction base="xs:NMTOKEN">
229 <xs:enumeration value="eq_FK4"/>
230 <xs:enumeration value="eq_FK5"/>
231 <xs:enumeration value="ICRS"/>
232 <xs:enumeration value="ecl_FK4"/>
233 <xs:enumeration value="ecl_FK5"/>
234 <xs:enumeration value="galactic"/>
235 <xs:enumeration value="supergalactic"/>
236 <xs:enumeration value="xy"/>
237 <xs:enumeration value="barycentric"/>
238 <xs:enumeration value="geo_app"/>
239 </xs:restriction>
240 </xs:simpleType>
241 </xs:attribute>
242 </xs:extension>
243 </xs:simpleContent>
244 </xs:complexType>
245
246 <xs:complexType name="Definitions">
247 <xs:annotation><xs:documentation>
248 Deprecated in Version 1.1
249 </xs:documentation></xs:annotation>
250 <xs:choice minOccurs="0" maxOccurs="unbounded">
251 <xs:element name="COOSYS" type="CoordinateSystem"/><!-- Deprecated in V1.2 -->
252 <xs:element name="PARAM" type="Param"/>
253 </xs:choice>
254 </xs:complexType>
255
256 <!-- FIELD is the definition of what is in a column of the table -->
257 <xs:complexType name="Field">
258 <xs:sequence> <!-- minOccurs="0" maxOccurs="unbounded" -->
259 <xs:element name="DESCRIPTION" type="anyTEXT" minOccurs="0"/>
260 <xs:element name="VALUES" type="Values" minOccurs="0"/> <!-- maxOccurs="2" -->
261 <xs:element name="LINK" type="Link" minOccurs="0" maxOccurs="unbounded"/>
262 </xs:sequence>
263 <xs:attribute name="ID" type="xs:ID"/>
264 <xs:attribute name="unit" type="xs:token"/>
265 <xs:attribute name="datatype" type="dataType" use="required"/>
266 <xs:attribute name="precision" type="precType"/>
267 <xs:attribute name="width" type="xs:positiveInteger"/>
268 <xs:attribute name="xtype" type="xs:token"/>
269 <xs:attribute name="ref" type="xs:IDREF"/>
270 <xs:attribute name="name" type="xs:token" use="required"/>
271 <xs:attribute name="ucd" type="ucdType"/>
272 <xs:attribute name="utype" type="xs:string"/>
273 <xs:attribute name="arraysize" type="xs:string"/>
274 <!-- GL: is the next deprecated element remaining
275 (is not in PARAM, but will in new model be inherited)
276 -->
277 <xs:attribute name="type">
278 <!-- type is not in the Version 1.1, but is kept for
279 backward compatibility purposes
280 -->
281 <xs:simpleType>
282 <xs:restriction base="xs:NMTOKEN">
283 <xs:enumeration value="hidden"/>
284 <xs:enumeration value="no_query"/>
285 <xs:enumeration value="trigger"/>
286 <xs:enumeration value="location"/>
287 </xs:restriction>
288 </xs:simpleType>
289 </xs:attribute>
290 </xs:complexType>
291
292
293 <!-- A PARAM is similar to a FIELD, but it also has a "value" attribute -->
294 <!-- GL: implemented here as a subtype as suggested we do in Kyoto. -->
295 <xs:complexType name="Param">
296 <xs:complexContent>
297 <xs:extension base="Field">
298 <xs:attribute name="value" type="xs:string" use="required"/>
299 </xs:extension>
300 </xs:complexContent>
301 </xs:complexType>
302
303
304 <!-- GROUP groups columns; may include descriptions, fields/params/groups -->
305 <xs:complexType name="Group">
306 <xs:sequence>
307 <xs:element name="DESCRIPTION" type="anyTEXT" minOccurs="0"/>
308 <!-- GL I guess I can understand the next choice element as one may (?)
309 really want to group fields and params and groups in a particular order.
310 -->
311 <xs:choice minOccurs="0" maxOccurs="unbounded">
312 <xs:element name="FIELDref" type="FieldRef"/>
313 <xs:element name="PARAMref" type="ParamRef"/>
314 <xs:element name="PARAM" type="Param"/>
315 <xs:element name="GROUP" type="Group"/>
316 <!-- GL a GroupRef could remove recursion -->
317 </xs:choice>
318 </xs:sequence>
319 <xs:attribute name="ID" type="xs:ID"/>
320 <xs:attribute name="name" type="xs:token"/>
321 <xs:attribute name="ref" type="xs:IDREF"/>
322 <xs:attribute name="ucd" type="ucdType"/>
323 <xs:attribute name="utype" type="xs:string"/>
324 </xs:complexType>
325
326 <!-- FIELDref and PARAMref are references to FIELD or PARAM defined
327 in the parent TABLE or RESOURCE -->
328 <!-- GL This can not be enforced in XML Schema, so why not IDREF in <Group> ?
329 In particular if the UCD and utype attributes will NOT be added -->
330 <xs:complexType name="FieldRef">
331 <xs:attribute name="ref" type="xs:IDREF" use="required"/>
332 <xs:attribute name="ucd" type="ucdType"/>
333 <xs:attribute name="utype" type="xs:string"/>
334 </xs:complexType>
335
336 <xs:complexType name="ParamRef">
337 <xs:attribute name="ref" type="xs:IDREF" use="required"/>
338 <xs:attribute name="ucd" type="ucdType"/>
339 <xs:attribute name="utype" type="xs:string"/>
340 </xs:complexType>
341
342 <!-- DATA is the actual table data, in one of three formats -->
343 <!--
344 GL in Kyoto we discussed the option of having the specific Data items
345 be subtypes of Data:
346 -->
347 <!--
348 <xs:complexType name="Data" abstract="true"/>
349
350 <xs:complexType name="TableData">
351 <xs:complexContent>
352 <xs:extension base="Data">
353 ... etc
354 </xs:extension>
355 </xs:complexContent>
356 </xs:complexType>
357 -->
358 <xs:complexType name="Data">
359 <xs:annotation><xs:documentation>
360 Added in Version 1.2: INFO for diagnostics
361 </xs:documentation></xs:annotation>
362 <xs:sequence>
363 <xs:choice>
364 <xs:element name="TABLEDATA" type="TableData"/>
365 <xs:element name="BINARY" type="Binary"/>
366 <xs:element name="FITS" type="FITS"/>
367 </xs:choice>
368 <xs:element name="INFO" type="Info" minOccurs="0" maxOccurs="unbounded"/>
369 </xs:sequence>
370 </xs:complexType>
371
372 <!-- Pure XML data -->
373 <xs:complexType name="TableData">
374 <xs:sequence>
375 <xs:element name="TR" type="Tr" minOccurs="0" maxOccurs="unbounded"/>
376 </xs:sequence>
377 </xs:complexType>
378
379 <xs:complexType name="Td">
380 <xs:simpleContent>
381 <xs:extension base="xs:string">
382 <!-- xs:attribute name="ref" type="xs:IDREF"/ -->
383 <xs:annotation><xs:documentation>
384 The 'encoding' attribute is added here to avoid
385 problems of code generators which do not properly
386 interpret the TR/TD structures.
387 'encoding' was chosen because it appears in
388 appendix A.5
389 </xs:documentation></xs:annotation>
390 <xs:attribute name="encoding" type="encodingType"/>
391 </xs:extension>
392 </xs:simpleContent>
393 </xs:complexType>
394
395 <xs:complexType name="Tr">
396 <xs:annotation><xs:documentation>
397 The ID attribute is added here to the TR tag to avoid
398 problems of code generators which do not properly
399 interpret the TR/TD structures
400 </xs:documentation></xs:annotation>
401 <xs:sequence>
402 <xs:element name="TD" type="Td" maxOccurs="unbounded"/>
403 </xs:sequence>
404 <xs:attribute name="ID" type="xs:ID"/>
405 </xs:complexType>
406
407 <!-- FITS file, perhaps with specification of which extension to seek to -->
408 <xs:complexType name="FITS">
409 <xs:sequence>
410 <xs:element name="STREAM" type="Stream"/>
411 </xs:sequence>
412 <xs:attribute name="extnum" type="xs:positiveInteger"/>
413 </xs:complexType>
414
415 <!-- BINARY data format -->
416 <xs:complexType name="Binary">
417 <xs:sequence>
418 <xs:element name="STREAM" type="Stream"/>
419 </xs:sequence>
420 </xs:complexType>
421
422 <!-- STREAM can be local or remote, encoded or not -->
423 <xs:complexType name="Stream">
424 <xs:simpleContent>
425 <xs:extension base="xs:string">
426 <xs:attribute name="type" default="locator">
427 <xs:simpleType>
428 <xs:restriction base="xs:NMTOKEN">
429 <xs:enumeration value="locator"/>
430 <xs:enumeration value="other"/>
431 </xs:restriction>
432 </xs:simpleType>
433 </xs:attribute>
434 <xs:attribute name="href" type="xs:anyURI"/>
435 <xs:attribute name="actuate" default="onRequest">
436 <xs:simpleType>
437 <xs:restriction base="xs:NMTOKEN">
438 <xs:enumeration value="onLoad"/>
439 <xs:enumeration value="onRequest"/>
440 <xs:enumeration value="other"/>
441 <xs:enumeration value="none"/>
442 </xs:restriction>
443 </xs:simpleType>
444 </xs:attribute>
445 <xs:attribute name="encoding" type="encodingType" default="none"/>
446 <xs:attribute name="expires" type="xs:dateTime"/>
447 <xs:attribute name="rights" type="xs:token"/>
448 </xs:extension>
449 </xs:simpleContent>
450 </xs:complexType>
451
452 <!-- A TABLE is a sequence of FIELD/PARAMs and LINKS and DESCRIPTION,
453 possibly followed by a DATA section
454 -->
455 <xs:complexType name="Table">
456 <xs:annotation><xs:documentation>
457 Added in Version 1.2: INFO for diagnostics
458 </xs:documentation></xs:annotation>
459 <xs:sequence>
460 <xs:element name="DESCRIPTION" type="anyTEXT" minOccurs="0"/>
461 <!-- GL: why a choice iso for example -->
462 <!--
463 <xs:element name="PARAM" type="Param" minOccurs="0" maxOccurs="unbounded"/>
464 <xs:element name="FIELD" type="Field" minOccurs="0" maxOccurs="unbounded"/>
465 <xs:element name="GROUP" type="Group" minOccurs="0" maxOccurs="unbounded"/>
466 -->
467 <!--
468 This could also enforce groups to be defined after the fields and params
469 to which they must have a reference, which is somewhat more logical
470 -->
471 <!-- Added Version 1.2: -->
472 <xs:element name="INFO" type="Info" minOccurs="0" maxOccurs="unbounded"/>
473 <!-- An empty table without any FIELD/PARAM should not be acceptable -->
474 <xs:choice minOccurs="1" maxOccurs="unbounded">
475 <xs:element name="FIELD" type="Field"/>
476 <xs:element name="PARAM" type="Param"/>
477 <xs:element name="GROUP" type="Group"/>
478 </xs:choice>
479 <xs:element name="LINK" type="Link" minOccurs="0" maxOccurs="unbounded"/>
480 <!-- This would allow several DATA parts in a table (future extension?)
481 <xs:sequence minOccurs="0" maxOccurs="unbounded">
482 <xs:element name="DATA" type="Data"/>
483 <xs:element name="INFO" type="Info" minOccurs="0" maxOccurs="unbounded"/>
484 </xs:sequence>
485 -->
486 <xs:element name="DATA" type="Data" minOccurs="0"/>
487 <xs:element name="INFO" type="Info" minOccurs="0" maxOccurs="unbounded"/>
488 </xs:sequence>
489 <xs:attribute name="ID" type="xs:ID"/>
490 <xs:attribute name="name" type="xs:token"/>
491 <xs:attribute name="ref" type="xs:IDREF"/>
492 <xs:attribute name="ucd" type="ucdType"/>
493 <xs:attribute name="utype" type="xs:string"/>
494 <xs:attribute name="nrows" type="xs:nonNegativeInteger"/>
495 </xs:complexType>
496
497 <!-- RESOURCES can contain DESCRIPTION, (INFO|PARAM|COSYS), LINK, TABLEs -->
498 <xs:complexType name="Resource">
499 <xs:annotation><xs:documentation>
500 Added in Version 1.2: INFO for diagnostics in several places
501 </xs:documentation></xs:annotation>
502 <xs:sequence>
503 <xs:element name="DESCRIPTION" type="anyTEXT" minOccurs="0"/>
504 <xs:element name="INFO" type="Info" minOccurs="0" maxOccurs="unbounded"/>
505 <xs:choice minOccurs="0" maxOccurs="unbounded">
506 <xs:element name="COOSYS" type="CoordinateSystem"/><!-- Deprecated in V1.2 -->
507 <xs:element name="GROUP" type="Group" />
508 <xs:element name="PARAM" type="Param" />
509 </xs:choice>
510 <xs:sequence minOccurs="0" maxOccurs="unbounded">
511 <xs:element name="LINK" type="Link" minOccurs="0" maxOccurs="unbounded"/>
512 <xs:choice>
513 <xs:element name="TABLE" type="Table" />
514 <xs:element name="RESOURCE" type="Resource" />
515 </xs:choice>
516 <xs:element name="INFO" type="Info" minOccurs="0" maxOccurs="unbounded"/>
517 </xs:sequence>
518 <!-- Suggested Doug Tody, to include new RESOURCE types -->
519 <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
520 </xs:sequence>
521 <xs:attribute name="name" type="xs:token"/>
522 <xs:attribute name="ID" type="xs:ID"/>
523 <xs:attribute name="utype" type="xs:string"/>
524 <xs:attribute name="type" default="results">
525 <xs:simpleType>
526 <xs:restriction base="xs:NMTOKEN">
527 <xs:enumeration value="results"/>
528 <xs:enumeration value="meta"/>
529 </xs:restriction>
530 </xs:simpleType>
531 </xs:attribute>
532 <!-- Suggested Doug Tody, to include new RESOURCE attributes -->
533 <xs:anyAttribute namespace="##other" processContents="lax"/>
534 </xs:complexType>
535
536 <!-- VOTable is the root element -->
537 <xs:element name="VOTABLE">
538 <xs:complexType>
539 <xs:sequence>
540 <xs:element name="DESCRIPTION" type="anyTEXT" minOccurs="0"/>
541 <xs:element name="DEFINITIONS" type="Definitions" minOccurs="0"/><!-- Deprecated -->
542 <xs:choice minOccurs="0" maxOccurs="unbounded">
543 <xs:element name="COOSYS" type="CoordinateSystem"/><!-- Deprecated in V1.2 -->
544 <xs:element name="GROUP" type="Group" />
545 <xs:element name="PARAM" type="Param" />
546 <xs:element name="INFO" type="Info" minOccurs="0" maxOccurs="unbounded"/>
547 </xs:choice>
548 <xs:element name="RESOURCE" type="Resource" minOccurs="1" maxOccurs="unbounded"/>
549 <xs:element name="INFO" type="Info" minOccurs="0" maxOccurs="unbounded"/>
550 </xs:sequence>
551 <xs:attribute name="ID" type="xs:ID"/>
552 <xs:attribute name="version">
553 <xs:simpleType>
554 <xs:restriction base="xs:NMTOKEN">
555 <xs:enumeration value="1.2"/>
556 </xs:restriction>
557 </xs:simpleType>
558 </xs:attribute>
559 </xs:complexType>
560 </xs:element>
561
562 </xs:schema>