Statistics
| Revision:

root / branches / Mobile1.0 / org.gvsig.gpe.gml / testdata / schemas / 3.1.1 / base / basicTypes.xsd @ 79

History | View | Annotate | Download (13.6 KB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<schema targetNamespace="http://www.opengis.net/gml" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:sch="http://www.ascc.net/xml/schematron" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:gml="http://www.opengis.net/gml" elementFormDefault="qualified" version="3.1.1">
3
  <annotation>
4
    <appinfo source="urn:opengis:specification:gml:schema-xsd:basicTypes:3.1.1">basicTypes.xsd</appinfo>
5
    <documentation>
6
    Generic simpleContent components for use in GML 
7
    Copyright (c) 2005 OGC, All Rights Reserved.
8
	For conditions, see OGC Software Notice http://www.opengeospatial.org/about/?page=ipr
9
    </documentation>
10
  </annotation>
11
  <!-- =========================================================== -->
12
  <simpleType name="NullEnumeration">
13
    <annotation>
14
      <documentation> Some common reasons for a null value:   
15
			
16
        innapplicable - the object does not have a value
17
        missing - The correct value is not readily available to the sender of this data.  
18
                           Furthermore, a correct value may not exist.
19
        template - the value will be available later
20
        unknown - The correct value is not known to, and not computable by, the sender of this data. 
21
                           However, a correct value probably exists.
22
        withheld - the value is not divulged 
23
        
24
        other:reason - as indicated by "reason" string
25
        
26
        Specific communities may agree to assign more strict semantics when these terms are used in a particular context.  
27
      </documentation>
28
    </annotation>
29
    <union>
30
      <simpleType>
31
        <restriction base="string">
32
          <enumeration value="inapplicable"/>
33
          <enumeration value="missing"/>
34
          <enumeration value="template"/>
35
          <enumeration value="unknown"/>
36
          <enumeration value="withheld"/>
37
        </restriction>
38
      </simpleType>
39
      <simpleType>
40
        <restriction base="string">
41
          <pattern value="other:\w{2,}"/>
42
        </restriction>
43
      </simpleType>
44
    </union>
45
  </simpleType>
46
  <!-- =========================================================== -->
47
  <simpleType name="NullType">
48
    <annotation>
49
      <documentation>Utility type for null elements.  The value may be selected from one of the enumerated tokens, or may be a URI in which case this should identify a resource which describes the reason for the null. </documentation>
50
    </annotation>
51
    <union memberTypes="gml:NullEnumeration anyURI"/>
52
  </simpleType>
53
  <!-- =========================================================== -->
54
  <element name="Null" type="gml:NullType"/>
55
  <!-- ===================================================== -->
56
  <simpleType name="SignType">
57
    <annotation>
58
      <documentation>Utility type used in various places 
59
      - e.g. to indicate the direction of topological objects;
60
      "+" for forwards, or "-" for backwards.</documentation>
61
    </annotation>
62
    <restriction base="string">
63
      <enumeration value="-"/>
64
      <enumeration value="+"/>
65
    </restriction>
66
  </simpleType>
67
  <!-- =========================================================== -->
68
  <simpleType name="booleanOrNull">
69
    <annotation>
70
      <documentation>Union of the XML Schema boolean type and the GML Nulltype.  An element which uses this type may have content which is either a boolean {0,1,true,false} or a value from Nulltype</documentation>
71
    </annotation>
72
    <union memberTypes="gml:NullEnumeration boolean anyURI"/>
73
  </simpleType>
74
  <!-- =========================================================== -->
75
  <simpleType name="booleanOrNullList">
76
    <annotation>
77
      <documentation>XML List based on the union type defined above.  An element declared with this type contains a space-separated list of boolean values {0,1,true,false} with null values interspersed as needed</documentation>
78
    </annotation>
79
    <list itemType="gml:booleanOrNull"/>
80
  </simpleType>
81
  <!-- =========================================================== -->
82
  <simpleType name="booleanList">
83
    <annotation>
84
      <documentation>XML List based on XML Schema boolean type.  An element of this type contains a space-separated list of boolean values {0,1,true,false}</documentation>
85
    </annotation>
86
    <list itemType="boolean"/>
87
  </simpleType>
88
  <!-- =========================================================== -->
89
  <simpleType name="stringOrNull">
90
    <annotation>
91
      <documentation>Union of the XML Schema string type and the GML Nulltype.  An element which uses this type may have content which is either a string or a value from Nulltype.  Note that a "string" may contain whitespace.  </documentation>
92
    </annotation>
93
    <union memberTypes="gml:NullEnumeration string anyURI"/>
94
  </simpleType>
95
  <!-- =========================================================== -->
96
  <simpleType name="NameOrNull">
97
    <annotation>
98
      <documentation>Union of the XML Schema Name type and the GML Nulltype.  An element which uses this type may have content which is either a Name or a value from Nulltype.  Note that a "Name" may not contain whitespace.  </documentation>
99
    </annotation>
100
    <union memberTypes="gml:NullEnumeration Name anyURI"/>
101
  </simpleType>
102
  <!-- =========================================================== -->
103
  <simpleType name="NameOrNullList">
104
    <annotation>
105
      <documentation>XML List based on the union type defined above.  An element declared with this type contains a space-separated list of Name values with null values interspersed as needed</documentation>
106
    </annotation>
107
    <list itemType="gml:NameOrNull"/>
108
  </simpleType>
109
  <!-- =========================================================== -->
110
  <simpleType name="NameList">
111
    <annotation>
112
      <documentation>XML List based on XML Schema Name type.  An element of this type contains a space-separated list of Name values</documentation>
113
    </annotation>
114
    <list itemType="Name"/>
115
  </simpleType>
116
  <!-- =========================================================== -->
117
  <simpleType name="doubleOrNull">
118
    <annotation>
119
      <documentation>Union of the XML Schema double type and the GML Nulltype.  An element which uses this type may have content which is either a double or a value from Nulltype</documentation>
120
    </annotation>
121
    <union memberTypes="gml:NullEnumeration double anyURI"/>
122
  </simpleType>
123
  <!-- =========================================================== -->
124
  <simpleType name="doubleOrNullList">
125
    <annotation>
126
      <documentation>XML List based on the union type defined above.  An element declared with this type contains a space-separated list of double values with null values interspersed as needed</documentation>
127
    </annotation>
128
    <list itemType="gml:doubleOrNull"/>
129
  </simpleType>
130
  <!-- =========================================================== -->
131
  <simpleType name="doubleList">
132
    <annotation>
133
      <documentation>XML List based on XML Schema double type.  An element of this type contains a space-separated list of double values</documentation>
134
    </annotation>
135
    <list itemType="double"/>
136
  </simpleType>
137
  <!-- =========================================================== -->
138
  <simpleType name="integerOrNull">
139
    <annotation>
140
      <documentation>Union of the XML Schema integer type and the GML Nulltype.  An element which uses this type may have content which is either an integer or a value from Nulltype</documentation>
141
    </annotation>
142
    <union memberTypes="gml:NullEnumeration integer anyURI"/>
143
  </simpleType>
144
  <!-- =========================================================== -->
145
  <simpleType name="integerOrNullList">
146
    <annotation>
147
      <documentation>XML List based on the union type defined above.  An element declared with this type contains a space-separated list of integer values with null values interspersed as needed</documentation>
148
    </annotation>
149
    <list itemType="gml:integerOrNull"/>
150
  </simpleType>
151
  <!-- =========================================================== -->
152
  <simpleType name="integerList">
153
    <annotation>
154
      <documentation>XML List based on XML Schema integer type.  An element of this type contains a space-separated list of integer values</documentation>
155
    </annotation>
156
    <list itemType="integer"/>
157
  </simpleType>
158
  <!-- =========================================================== -->
159
  <complexType name="CodeType">
160
    <annotation>
161
      <documentation>Name or code with an (optional) authority.  Text token.  
162
      If the codeSpace attribute is present, then its value should identify a dictionary, thesaurus 
163
      or authority for the term, such as the organisation who assigned the value, 
164
      or the dictionary from which it is taken.  
165
      A text string with an optional codeSpace attribute. </documentation>
166
    </annotation>
167
    <simpleContent>
168
      <extension base="string">
169
        <attribute name="codeSpace" type="anyURI" use="optional"/>
170
      </extension>
171
    </simpleContent>
172
  </complexType>
173
  <!-- =========================================================== -->
174
  <complexType name="CodeListType">
175
    <annotation>
176
      <documentation>List of values on a uniform nominal scale.  List of text tokens.   
177
      In a list context a token should not include any spaces, so xsd:Name is used instead of xsd:string.   
178
      If a codeSpace attribute is present, then its value is a reference to 
179
      a Reference System for the value, a dictionary or code list.</documentation>
180
    </annotation>
181
    <simpleContent>
182
      <extension base="gml:NameList">
183
        <attribute name="codeSpace" type="anyURI" use="optional"/>
184
      </extension>
185
    </simpleContent>
186
  </complexType>
187
  <!-- =========================================================== -->
188
  <complexType name="CodeOrNullListType">
189
    <annotation>
190
      <documentation>List of values on a uniform nominal scale.  List of text tokens.   
191
      In a list context a token should not include any spaces, so xsd:Name is used instead of xsd:string.  
192
      A member of the list may be a typed null.  
193
      If a codeSpace attribute is present, then its value is a reference to 
194
      a Reference System for the value, a dictionary or code list.</documentation>
195
    </annotation>
196
    <simpleContent>
197
      <extension base="gml:NameOrNullList">
198
        <attribute name="codeSpace" type="anyURI" use="optional"/>
199
      </extension>
200
    </simpleContent>
201
  </complexType>
202
  <!-- =========================================================== -->
203
  <complexType name="MeasureType">
204
    <annotation>
205
      <documentation>Number with a scale.  
206
      The value of uom (Units Of Measure) attribute is a reference to a Reference System for the amount, either a ratio or position scale. </documentation>
207
    </annotation>
208
    <simpleContent>
209
      <extension base="double">
210
        <attribute name="uom" type="anyURI" use="required"/>
211
      </extension>
212
    </simpleContent>
213
  </complexType>
214
  <!-- =========================================================== -->
215
  <complexType name="MeasureListType">
216
    <annotation>
217
      <documentation>List of numbers with a uniform scale.  
218
      The value of uom (Units Of Measure) attribute is a reference to 
219
      a Reference System for the amount, either a ratio or position scale. </documentation>
220
    </annotation>
221
    <simpleContent>
222
      <extension base="gml:doubleList">
223
        <attribute name="uom" type="anyURI" use="required"/>
224
      </extension>
225
    </simpleContent>
226
  </complexType>
227
  <!-- =========================================================== -->
228
  <complexType name="MeasureOrNullListType">
229
    <annotation>
230
      <documentation>List of numbers with a uniform scale.  
231
      A member of the list may be a typed null. 
232
      The value of uom (Units Of Measure) attribute is a reference to 
233
      a Reference System for the amount, either a ratio or position scale. </documentation>
234
    </annotation>
235
    <simpleContent>
236
      <extension base="gml:doubleOrNullList">
237
        <attribute name="uom" type="anyURI" use="required"/>
238
      </extension>
239
    </simpleContent>
240
  </complexType>
241
  <!-- =========================================================== -->
242
  <complexType name="CoordinatesType">
243
    <annotation>
244
      <documentation>Tables or arrays of tuples.  
245
        May be used for text-encoding of values from a table.  
246
        Actually just a string, but allows the user to indicate which characters are used as separators.  
247
        The value of the 'cs' attribute is the separator for coordinate values, 
248
        and the value of the 'ts' attribute gives the tuple separator (a single space by default); 
249
        the default values may be changed to reflect local usage.
250
        Defaults to CSV within a tuple, space between tuples.  
251
        However, any string content will be schema-valid.  </documentation>
252
    </annotation>
253
    <simpleContent>
254
      <extension base="string">
255
        <attribute name="decimal" type="string" default="."/>
256
        <attribute name="cs" type="string" default=","/>
257
        <attribute name="ts" type="string" default="&#x20;"/>
258
      </extension>
259
    </simpleContent>
260
  </complexType>
261
  <!-- =========================================================== -->
262
  <simpleType name="NCNameList">
263
    <annotation>
264
      <documentation>A set of values, representing a list of token with the lexical value space of NCName. The tokens are seperated by whitespace.</documentation>
265
    </annotation>
266
    <list itemType="NCName"/>
267
  </simpleType>
268
  <!-- ============================================================== -->
269
  <simpleType name="QNameList">
270
    <annotation>
271
      <documentation>A set of values, representing a list of token with the lexical value space of QName. The tokens are seperated by whitespace.</documentation>
272
    </annotation>
273
    <list itemType="QName"/>
274
  </simpleType>
275
  <!-- ============================================================== -->
276
</schema>