-
Notifications
You must be signed in to change notification settings - Fork 0
/
Locations.xsd
297 lines (281 loc) · 9.58 KB
/
Locations.xsd
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Id: Locations.xsd 7876 2013-03-31 07:46:12Z $
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:loc="http://www.iaea.org/2012/IRIX/Format/Locations"
xmlns:base="http://www.iaea.org/2012/IRIX/Format/Base"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:sch="http://purl.oclc.org/dsdl/schematron"
targetNamespace="http://www.iaea.org/2012/IRIX/Format/Locations"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:import namespace="http://www.iaea.org/2012/IRIX/Format/Base" schemaLocation="Base.xsd"/>
<xsd:element name="Locations" type="loc:LocationsType">
<xsd:annotation>
<xsd:documentation xml:lang="en">
A report section containing a list of geographical locations ("place marks") of interest.
</xsd:documentation>
</xsd:annotation>
<xsd:key name="LocationID">
<xsd:selector xpath="loc:Location"/>
<xsd:field xpath="@id"/>
</xsd:key>
</xsd:element>
<xsd:element name="Location" type="loc:LocationOrLocationRefType">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Contains information describing a geographical location.
</xsd:documentation>
<xsd:appinfo>
<sch:ns prefix="loc" uri="http://www.iaea.org/2012/IRIX/Format/Locations"/>
<sch:pattern name="Locations referential integrity">
<sch:rule context="loc:Location">
<sch:assert test="not(@ref) or @ref=//loc:Locations/loc:Location/@id">The @ref attribute of a Location element must match the @id attribute of a Location element in the Locations section of the IRIX report.</sch:assert>
</sch:rule>
</sch:pattern>
<sch:pattern name="Location element structure">
<sch:rule context="loc:Location">
<sch:report test="@ref and loc:*">A Location element with a @ref attribute must have no child elements.</sch:report>
<sch:assert test="@ref | loc:*">A Location element must have either a @ref attribute or child elements.</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="LocationsType">
<xsd:sequence>
<xsd:element name="Location" type="loc:LocationWithIdType" minOccurs="1" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Contains information describing a geographical location.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="LocationOrLocationRefType">
<xsd:complexContent>
<xsd:extension base="loc:LocationType">
<xsd:attribute name="ref" type="xsd:NCName" use="optional">
<xsd:annotation>
<xsd:documentation xml:lang="en">
A reference to a
Location defined under /Report/Locations.
If this attribute is used, the content of the element
must be empty / ignored.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="LocationWithIdType">
<xsd:complexContent>
<xsd:extension base="loc:LocationType">
<xsd:attribute name="id" type="xsd:NCName" use="required">
<xsd:annotation>
<xsd:documentation xml:lang="en">
An identifier for referring to this Location from within
other parts of the report.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="LocationOffset" type="loc:LocationOffsetType">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Distance and direction of a location away from some reference location.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="LocationType">
<xsd:sequence>
<xsd:element name="Name" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Name of location.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="GeographicCoordinates" type="loc:GeographicCoordinatesType"
minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Geographical co-ordinates and height of location.
</xsd:documentation>
</xsd:annotation>
<xsd:unique name="UniqueHeightConstraint">
<xsd:selector xpath="loc:Height" />
<xsd:field xpath="@Above" />
</xsd:unique>
</xsd:element>
<xsd:element name="Municipality" type="xsd:string"
minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Name of municipality.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="AdministrativeUnit" type="xsd:string"
minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Name of administrative
unit to which municipality belongs.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Country" type="base:CountryType" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Country code (2-alpha ISO code).
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="AccuracyType" type="loc:AccuracyType"
minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Indicates whether the location refers to a region or an
exact location.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Description" type="base:FreeTextType" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Free text description of location.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="GeographicCoordinatesType">
<xsd:annotation>
<xsd:documentation xml:lang="en">
<html:p>
Description of the
location. The latitude and longitude are
used in
WGS84. Height is given in meters
above sea level or land.
</html:p>
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="Latitude" type="loc:LatitudeType">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Latitude of location (WGS84). Positive for northern hemisphere.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Longitude" type="loc:LongitudeType">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Longitude of location (WGS84). Positive east of Greenwich meridian.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Height" type="loc:HeightType"
minOccurs="0" maxOccurs="2">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Height of location (m), above
ground or sea-level (or both).
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="HeightType">
<xsd:simpleContent>
<xsd:extension base="xsd:decimal">
<xsd:attribute name="Above" type="loc:HeightTypeType"
use="required">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Indicates whether
the specified height is measured above land or above sea.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="Unit" type="xsd:token" fixed="m"
use="required"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="LocationOffsetType">
<xsd:annotation>
<xsd:documentation xml:lang="en">
A type for describing a location by distance and direction
measured from a reference location.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="Distance" type="base:LengthType">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Distance to location relative to reference location.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Direction" type="base:AngleType">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Direction to location relative to reference location.
The direction is measured in degrees from North (0 degrees).
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="LongitudeType">
<xsd:annotation>
<xsd:documentation xml:lang="en"> East of Greenwich meridian is positive.
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:decimal">
<xsd:minInclusive value="-180"/>
<xsd:maxExclusive value="180"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="LatitudeType">
<xsd:annotation>
<xsd:documentation> Positive angle on Northern Hemisphere, negative angles on Southern
Hemisphere </xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:decimal">
<xsd:maxInclusive value="90"/>
<xsd:minInclusive value="-90"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="HeightTypeType">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Definition of the value
for attribute "Above" of element "Height".
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:token">
<xsd:enumeration value="Sea" />
<xsd:enumeration value="Land" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="AccuracyType">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Definition of the
values of the accuracy of a location.
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:token">
<xsd:enumeration value="Reference of Region" />
<xsd:enumeration value="Exact Location" />
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>