Avoid potential negative array index access to cached text.
[LibreOffice.git] / sfx2 / classification / xAL.xsd
blob13babc61580b431070d29e8ef5d239462bae25a2
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:oasis:names:tc:ciq:xal:3" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ct="urn:oasis:names:tc:ciq:ct:3" targetNamespace="urn:oasis:names:tc:ciq:xal:3" elementFormDefault="qualified" attributeFormDefault="qualified">
3 <xs:annotation>
4 <xs:documentation>
5 Specification Name: OASIS CIQ TC - extensible Address Language (xAL)
6 Description: Defines the W3C schema for representing addresses
7 (Using XML Schema based standard code list/enumeration mechanism - OPTION 1 AND DEFAULT)
8 Produced by: OASIS Customer Information Quality Technical Committee
9 URL: http://www.oasis-open.org/committees/ciq
10 Version: 3.0
11 Status: Public Review Draft 03 ERRATA
12 Copyright: 2007-08, OASIS, http://www.oasis-open.org
13 Last Modified: 08 April 2008
14 Last Modified by: Ram Kumar, Chair, OASIS CIQ TC
15 NOTE: Do not modify this schema as it will break specifications compatibility
16 </xs:documentation>
17 </xs:annotation>
18 <xs:include schemaLocation="xAL-types.xsd"/>
19 <xs:import namespace="urn:oasis:names:tc:ciq:ct:3" schemaLocation="CommonTypes.xsd"/>
20 <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="xlink-2003-12-31.xsd"/>
21 <xs:element name="Address" type="AddressType">
22 <xs:annotation>
23 <xs:documentation>Top level element for address with geocode details</xs:documentation>
24 </xs:annotation>
25 </xs:element>
26 <xs:complexType name="AddressType">
27 <xs:annotation>
28 <xs:documentation>Complex type that defines the structure of an address with geocode details for reuse</xs:documentation>
29 </xs:annotation>
30 <xs:sequence>
31 <xs:element name="FreeTextAddress" minOccurs="0">
32 <xs:annotation>
33 <xs:documentation>Container for free text address elements where address elements are not parsed </xs:documentation>
34 </xs:annotation>
35 <xs:complexType>
36 <xs:sequence>
37 <xs:element name="AddressLine" maxOccurs="unbounded">
38 <xs:annotation>
39 <xs:documentation>Free format address representation. An address can have more than one line. The order of the AddressLine elements must be preserved.</xs:documentation>
40 </xs:annotation>
41 <xs:complexType>
42 <xs:simpleContent>
43 <xs:extension base="ct:String">
44 <xs:attribute name="Type" type="AddressLineTypeList">
45 <xs:annotation>
46 <xs:documentation>What does the address line describe? e.g. Street details, suburb details, post code details, whole address, etc</xs:documentation>
47 </xs:annotation>
48 </xs:attribute>
49 <xs:attributeGroup ref="ct:grDataQuality"/>
50 <xs:anyAttribute namespace="##other"/>
51 </xs:extension>
52 </xs:simpleContent>
53 </xs:complexType>
54 </xs:element>
55 </xs:sequence>
56 <xs:attributeGroup ref="ct:grDataQuality"/>
57 <xs:anyAttribute namespace="##other" processContents="lax"/>
58 </xs:complexType>
59 </xs:element>
60 <xs:element name="Country" minOccurs="0">
61 <xs:annotation>
62 <xs:documentation>Country details</xs:documentation>
63 </xs:annotation>
64 <xs:complexType>
65 <xs:complexContent>
66 <xs:extension base="CountryType"/>
67 </xs:complexContent>
68 </xs:complexType>
69 </xs:element>
70 <xs:element name="AdministrativeArea" minOccurs="0">
71 <xs:annotation>
72 <xs:documentation>Details of the top-level area division in the country, such as state, district, province, island, region, etc. Note that some countries do not have this</xs:documentation>
73 </xs:annotation>
74 <xs:complexType>
75 <xs:sequence>
76 <xs:element name="NameElement" maxOccurs="unbounded">
77 <xs:annotation>
78 <xs:documentation>Data associated with the Administrative Area. e.g. Full name of administrative area or part of it. eg. MI in USA, NSW in Australia, reference location to the administrative area</xs:documentation>
79 </xs:annotation>
80 <xs:complexType>
81 <xs:simpleContent>
82 <xs:extension base="ct:String">
83 <xs:attributeGroup ref="ct:grAbbreviation"/>
84 <xs:attribute name="NameType" type="AdministrativeAreaNameTypeList">
85 <xs:annotation>
86 <xs:documentation>semantics of data associated with name</xs:documentation>
87 </xs:annotation>
88 </xs:attribute>
89 <xs:attribute name="NameCode" type="AdministrativeAreaNameCodeList">
90 <xs:annotation>
91 <xs:documentation>Name of administrative area represented as a code. e.g. "COL" for COLORADO</xs:documentation>
92 </xs:annotation>
93 </xs:attribute>
94 <xs:attribute name="NameCodeType" type="ct:String">
95 <xs:annotation>
96 <xs:documentation>Type of code used to represent name as a code</xs:documentation>
97 </xs:annotation>
98 </xs:attribute>
99 <xs:anyAttribute namespace="##other"/>
100 </xs:extension>
101 </xs:simpleContent>
102 </xs:complexType>
103 </xs:element>
104 <xs:element name="SubAdministrativeArea" minOccurs="0">
105 <xs:annotation>
106 <xs:documentation>The next level down division of the area. E.g. state / county, province / reservation. Note that not all countries have a subadministrative area</xs:documentation>
107 </xs:annotation>
108 <xs:complexType>
109 <xs:sequence>
110 <xs:element name="NameElement" maxOccurs="unbounded">
111 <xs:annotation>
112 <xs:documentation>Data associated with the SubAdministrative Area. e.g. Full name of sub administrative area or part of it. </xs:documentation>
113 </xs:annotation>
114 <xs:complexType>
115 <xs:simpleContent>
116 <xs:extension base="ct:String">
117 <xs:attributeGroup ref="ct:grAbbreviation"/>
118 <xs:attribute name="NameType" type="SubAdministrativeAreaNameTypeList">
119 <xs:annotation>
120 <xs:documentation>semantics of data associated with name</xs:documentation>
121 </xs:annotation>
122 </xs:attribute>
123 <xs:attribute name="NameCode" type="SubAdministrativeAreaNameCodeList">
124 <xs:annotation>
125 <xs:documentation>Name of administrative area represented as a code. e.g. "COL" for COLORADO</xs:documentation>
126 </xs:annotation>
127 </xs:attribute>
128 <xs:attribute name="NameCodeType" type="ct:String">
129 <xs:annotation>
130 <xs:documentation>Type of code used to represent name as a code</xs:documentation>
131 </xs:annotation>
132 </xs:attribute>
133 <xs:anyAttribute namespace="##other"/>
134 </xs:extension>
135 </xs:simpleContent>
136 </xs:complexType>
137 </xs:element>
138 </xs:sequence>
139 <xs:attribute name="Type" type="SubAdministrativeAreaTypeList">
140 <xs:annotation>
141 <xs:documentation>Type of sub administrative area</xs:documentation>
142 </xs:annotation>
143 </xs:attribute>
144 <xs:attributeGroup ref="ct:grDataQuality"/>
145 <xs:anyAttribute namespace="##other" processContents="lax"/>
146 </xs:complexType>
147 </xs:element>
148 </xs:sequence>
149 <xs:attribute name="Type" type="AdministrativeAreaTypeList">
150 <xs:annotation>
151 <xs:documentation>Type of administrative area. e.g. state, city, town, etc</xs:documentation>
152 </xs:annotation>
153 </xs:attribute>
154 <xs:attributeGroup ref="ct:grDataQuality"/>
155 <xs:anyAttribute namespace="##other" processContents="lax"/>
156 </xs:complexType>
157 </xs:element>
158 <xs:element name="Locality" minOccurs="0">
159 <xs:annotation>
160 <xs:documentation>Details of Locality which is a named densely populated area (a place) such as town, village, suburb, etc. A locality composes of many individual addresses. Many localities exist in an administrative area or a sub administrative area. A locality can also have sub localities. For example, a municipality locality can have many villages associated with it which are sub localities. Example: Tamil Nadu State, Erode District, Bhavani Taluk, Paruvachi Village is a valid address in India. Tamil Nadu is the Administrative Area, Erode is the sub admin area, Bhavani is the locality, and Paruvachi is the sub locality</xs:documentation>
161 </xs:annotation>
162 <xs:complexType>
163 <xs:sequence>
164 <xs:element name="NameElement" maxOccurs="unbounded">
165 <xs:annotation>
166 <xs:documentation>Data associated with the locality. e.g. Full name of the locality or part of it, reference location to the locality</xs:documentation>
167 </xs:annotation>
168 <xs:complexType>
169 <xs:simpleContent>
170 <xs:extension base="ct:String">
171 <xs:attributeGroup ref="ct:grAbbreviation"/>
172 <xs:attribute name="NameType" type="LocalityNameTypeList">
173 <xs:annotation>
174 <xs:documentation>semantics of data associated with name</xs:documentation>
175 </xs:annotation>
176 </xs:attribute>
177 <xs:attribute name="NameCode" type="LocalityNameCodeList">
178 <xs:annotation>
179 <xs:documentation>name of locality represented as a code</xs:documentation>
180 </xs:annotation>
181 </xs:attribute>
182 <xs:attribute name="NameCodeType" type="ct:String">
183 <xs:annotation>
184 <xs:documentation>type of code used to represent name as a code</xs:documentation>
185 </xs:annotation>
186 </xs:attribute>
187 <xs:anyAttribute namespace="##other"/>
188 </xs:extension>
189 </xs:simpleContent>
190 </xs:complexType>
191 </xs:element>
192 <xs:element name="SubLocality" minOccurs="0">
193 <xs:annotation>
194 <xs:documentation>A locality that is smaller and is contained within the boundaries of its parent locality. Note that not all localities have sub locality. For example, many areas within a locality where each area is a sub locality</xs:documentation>
195 </xs:annotation>
196 <xs:complexType>
197 <xs:sequence>
198 <xs:element name="NameElement" maxOccurs="unbounded">
199 <xs:annotation>
200 <xs:documentation>Data associated with the sub locality. e.g. Full name of the locality or part of it, reference location to the locality</xs:documentation>
201 </xs:annotation>
202 <xs:complexType>
203 <xs:simpleContent>
204 <xs:extension base="ct:String">
205 <xs:attributeGroup ref="ct:grAbbreviation"/>
206 <xs:attribute name="NameType" type="SubLocalityNameTypeList">
207 <xs:annotation>
208 <xs:documentation>semantics of data associated with name</xs:documentation>
209 </xs:annotation>
210 </xs:attribute>
211 <xs:attribute name="NameCode" type="SubLocalityNameCodeList">
212 <xs:annotation>
213 <xs:documentation>name of locality represented as a code</xs:documentation>
214 </xs:annotation>
215 </xs:attribute>
216 <xs:attribute name="NameCodeType" type="ct:String">
217 <xs:annotation>
218 <xs:documentation>type of code used to represent name as a code</xs:documentation>
219 </xs:annotation>
220 </xs:attribute>
221 <xs:anyAttribute namespace="##other"/>
222 </xs:extension>
223 </xs:simpleContent>
224 </xs:complexType>
225 </xs:element>
226 </xs:sequence>
227 <xs:attribute name="Type" type="SubLocalityTypeList">
228 <xs:annotation>
229 <xs:documentation>Type of sub locality</xs:documentation>
230 </xs:annotation>
231 </xs:attribute>
232 <xs:attributeGroup ref="ct:grDataQuality"/>
233 <xs:anyAttribute namespace="##other" processContents="lax"/>
234 </xs:complexType>
235 </xs:element>
236 </xs:sequence>
237 <xs:attribute name="Type" type="LocalityTypeList">
238 <xs:annotation>
239 <xs:documentation>Type of locality. e.g. suburb, area, zone, village, etc</xs:documentation>
240 </xs:annotation>
241 </xs:attribute>
242 <xs:attributeGroup ref="ct:grDataQuality"/>
243 <xs:anyAttribute namespace="##other" processContents="lax"/>
244 </xs:complexType>
245 </xs:element>
246 <xs:element name="Thoroughfare" minOccurs="0">
247 <xs:annotation>
248 <xs:documentation>Details of the Access route along which buildings/lot/land are located, such as street, road, channel, crescent, avenue, etc. This also includes canals/banks on which houses/boat houses are located where people live</xs:documentation>
249 </xs:annotation>
250 <xs:complexType>
251 <xs:complexContent>
252 <xs:extension base="ThoroughfareType">
253 <xs:sequence>
254 <xs:element name="SubThoroughfare" minOccurs="0" maxOccurs="5">
255 <xs:annotation>
256 <xs:documentation>Another thoroughfare that is required to uniquely identify the location, such as an access route, intersection, corner, adjacent, boundary, etc</xs:documentation>
257 </xs:annotation>
258 <xs:complexType>
259 <xs:complexContent>
260 <xs:extension base="ThoroughfareType"/>
261 </xs:complexContent>
262 </xs:complexType>
263 </xs:element>
264 </xs:sequence>
265 </xs:extension>
266 </xs:complexContent>
267 </xs:complexType>
268 </xs:element>
269 <xs:element name="Premises" minOccurs="0">
270 <xs:annotation>
271 <xs:documentation>Details of the Premises (could be building(s), site, location, property, premise, place) which is a landmark place which has a main address such as large mail user (e.g. Airport, Hospital, University) or could be a building (e.g. apartment, house) or a building or complex of buildings (e.g. an apartment complex or shopping centre) or even a vacant land (e.g. LOT). Premises can have many sub-addresses such as apartments in a building having its own addresses or buildings within an airport having its own addresses including its own thoroughfares</xs:documentation>
272 </xs:annotation>
273 <xs:complexType>
274 <xs:complexContent>
275 <xs:extension base="PremisesType">
276 <xs:sequence>
277 <xs:element name="SubPremises" minOccurs="0" maxOccurs="unbounded">
278 <xs:annotation>
279 <xs:documentation>Examples of sub-premises are apartments and suites in buildings, shops in malls, etc. or sub-addresses in a land mark place such as airports, military bases, hospitals, etc. Some countries have blocks within blocks</xs:documentation>
280 </xs:annotation>
281 <xs:complexType>
282 <xs:complexContent>
283 <xs:extension base="PremisesType">
284 <xs:attribute name="Type" type="SubPremisesTypeList"/>
285 <xs:attribute name="TypeCode" type="ct:String">
286 <xs:annotation>
287 <xs:documentation>Type of code used for sub premises type attribute</xs:documentation>
288 </xs:annotation>
289 </xs:attribute>
290 </xs:extension>
291 </xs:complexContent>
292 </xs:complexType>
293 </xs:element>
294 </xs:sequence>
295 <xs:attribute name="Type" type="PremisesTypeList"/>
296 <xs:attribute name="TypeCode" type="ct:String">
297 <xs:annotation>
298 <xs:documentation>Type of code use for Premises Type attribute</xs:documentation>
299 </xs:annotation>
300 </xs:attribute>
301 </xs:extension>
302 </xs:complexContent>
303 </xs:complexType>
304 </xs:element>
305 <xs:element name="PostCode" minOccurs="0">
306 <xs:annotation>
307 <xs:documentation>A container for a single free text or structured postcode. Note that not all countries have post codes</xs:documentation>
308 </xs:annotation>
309 <xs:complexType>
310 <xs:sequence>
311 <xs:element name="Identifier" type="IdentifierType" maxOccurs="unbounded">
312 <xs:annotation>
313 <xs:documentation>The postcode is formatted according to country-specific rules. Example: SW3 0A8-1A, 600074, 2067. This element can also be used to define the semantics of what each code in the post code means</xs:documentation>
314 </xs:annotation>
315 </xs:element>
316 </xs:sequence>
317 <xs:attributeGroup ref="ct:grDataQuality"/>
318 <xs:anyAttribute namespace="##other" processContents="lax"/>
319 </xs:complexType>
320 </xs:element>
321 <xs:element name="RuralDelivery" minOccurs="0">
322 <xs:annotation>
323 <xs:documentation>A container for postal-specific delivery identifier for remote communities. Note that not all countries have RuralDelivery</xs:documentation>
324 </xs:annotation>
325 <xs:complexType>
326 <xs:sequence>
327 <xs:element name="Identifier" type="IdentifierType" maxOccurs="unbounded">
328 <xs:annotation>
329 <xs:documentation>Free text or structured description of rural delivery route. e.g. RD 6, </xs:documentation>
330 </xs:annotation>
331 </xs:element>
332 </xs:sequence>
333 <xs:attribute name="Type" type="RuralDeliveryTypeList">
334 <xs:annotation>
335 <xs:documentation>Type of rural delivery. For some addresses, delivery to rural areas happens via water, air or road</xs:documentation>
336 </xs:annotation>
337 </xs:attribute>
338 <xs:attributeGroup ref="ct:grDataQuality"/>
339 <xs:anyAttribute namespace="##other" processContents="lax"/>
340 </xs:complexType>
341 </xs:element>
342 <xs:element name="PostalDeliveryPoint" minOccurs="0">
343 <xs:annotation>
344 <xs:documentation>Final mail delivery point where the mail is dropped off for recipients to pick them up directly. E.g. POBox, Private Bag, pigeon hole, free mail numbers, etc.</xs:documentation>
345 </xs:annotation>
346 <xs:complexType>
347 <xs:sequence>
348 <xs:element name="Identifier" type="IdentifierType" maxOccurs="unbounded">
349 <xs:annotation>
350 <xs:documentation>Free text or structured description of a postal delivery point.</xs:documentation>
351 </xs:annotation>
352 </xs:element>
353 </xs:sequence>
354 <xs:attribute name="Type" type="PostalDeliveryPointTypeList"/>
355 <xs:attributeGroup ref="ct:grDataQuality"/>
356 <xs:anyAttribute namespace="##other" processContents="lax"/>
357 </xs:complexType>
358 </xs:element>
359 <xs:element name="PostOffice" minOccurs="0">
360 <xs:annotation>
361 <xs:documentation>A delivery point/installation where all mails are delivered and the post man/delivery service picks up the mails and delivers it to the recipients through a delivery mode. Examples are a rural post office where post is delivered, a post office containing post office boxes/personal mail boxes. Note that not all countries have PostOffice. Can be used to represent overseas military addresses also along with PostalDeliveryPoint element</xs:documentation>
362 </xs:annotation>
363 <xs:complexType>
364 <xs:sequence>
365 <xs:element name="Identifier" type="IdentifierType" maxOccurs="unbounded">
366 <xs:annotation>
367 <xs:documentation>Name or number of the post office in free text or structured form.</xs:documentation>
368 </xs:annotation>
369 </xs:element>
370 </xs:sequence>
371 <xs:attribute name="Type" type="PostOfficeTypeList">
372 <xs:annotation>
373 <xs:documentation>Indicates the type of postal delivery office from where the mail will be distributed to the final delivery point by a delivery mode. Example: Post Office, Mail Collection Centre, Letter Carrier Depot, Station, etc. </xs:documentation>
374 </xs:annotation>
375 </xs:attribute>
376 <xs:attributeGroup ref="ct:grDataQuality"/>
377 <xs:anyAttribute namespace="##other" processContents="lax"/>
378 </xs:complexType>
379 </xs:element>
380 <xs:element name="GeoRSS" minOccurs="0">
381 <xs:annotation>
382 <xs:documentation>GeoRSS GML from Open Geospatial Consortium (OGC – www.opengeospatial.net) is a formal GML Application Profile, and supports a greater range of features than Simple, notably coordinate reference systems other than WGS84 latitude/longitude. It is designed for use with Atom 1.0, RSS 2.0 and RSS 1.0, although it can be used just as easily in non-RSS XML encodings. </xs:documentation>
383 </xs:annotation>
384 <xs:complexType>
385 <xs:sequence>
386 <xs:any namespace="http://www.georss.org/georss" maxOccurs="unbounded">
387 <xs:annotation>
388 <xs:documentation>Could be GeoRSS Simple or GeoRSS GML versions. Refer to http://georss.org/ and http://georss.org/gml for further documentation</xs:documentation>
389 </xs:annotation>
390 </xs:any>
391 </xs:sequence>
392 <xs:anyAttribute namespace="##other" processContents="lax"/>
393 </xs:complexType>
394 </xs:element>
395 <xs:element name="LocationByCoordinates" minOccurs="0">
396 <xs:annotation>
397 <xs:documentation>Simple Geo-coordinates of the address/location</xs:documentation>
398 </xs:annotation>
399 <xs:complexType>
400 <xs:sequence>
401 <xs:element name="Latitude" minOccurs="0">
402 <xs:annotation>
403 <xs:documentation>Latitude details</xs:documentation>
404 </xs:annotation>
405 <xs:complexType>
406 <xs:attribute name="DegreesMeasure" type="ct:String">
407 <xs:annotation>
408 <xs:documentation>Measure of the latitude in degrees</xs:documentation>
409 </xs:annotation>
410 </xs:attribute>
411 <xs:attribute name="MinutesMeasure" type="ct:String">
412 <xs:annotation>
413 <xs:documentation>Measure of the latitude in minutes</xs:documentation>
414 </xs:annotation>
415 </xs:attribute>
416 <xs:attribute name="SecondsMeasure" type="ct:String">
417 <xs:annotation>
418 <xs:documentation>Measure of the latitude in seconds</xs:documentation>
419 </xs:annotation>
420 </xs:attribute>
421 <xs:attribute name="Direction" type="DirectionTypeList">
422 <xs:annotation>
423 <xs:documentation>The direction of latitude measurement offset from the equator</xs:documentation>
424 </xs:annotation>
425 </xs:attribute>
426 <xs:anyAttribute namespace="##other" processContents="lax"/>
427 </xs:complexType>
428 </xs:element>
429 <xs:element name="Longitude" minOccurs="0">
430 <xs:annotation>
431 <xs:documentation>Longitude details</xs:documentation>
432 </xs:annotation>
433 <xs:complexType>
434 <xs:attribute name="DegreesMeasure" type="ct:String">
435 <xs:annotation>
436 <xs:documentation>Measure of the longitude in degrees</xs:documentation>
437 </xs:annotation>
438 </xs:attribute>
439 <xs:attribute name="MinutesMeasure" type="ct:String">
440 <xs:annotation>
441 <xs:documentation>Measure of the longitude in minutes</xs:documentation>
442 </xs:annotation>
443 </xs:attribute>
444 <xs:attribute name="SecondsMeasure" type="ct:String">
445 <xs:annotation>
446 <xs:documentation>Measure of the longitude in seconds</xs:documentation>
447 </xs:annotation>
448 </xs:attribute>
449 <xs:attribute name="Direction" type="DirectionTypeList">
450 <xs:annotation>
451 <xs:documentation>The direction of longitude measurement offset from the equator</xs:documentation>
452 </xs:annotation>
453 </xs:attribute>
454 <xs:anyAttribute namespace="##other" processContents="lax"/>
455 </xs:complexType>
456 </xs:element>
457 </xs:sequence>
458 <xs:attribute name="Meridian" type="MeridianCodeList">
459 <xs:annotation>
460 <xs:documentation>The collection of the coordinate numeric values for latitude amd longitude depends on the agreed position of the meridian. Declaration of the meridian is necessary as it cannot be assumed in the data</xs:documentation>
461 </xs:annotation>
462 </xs:attribute>
463 <xs:attribute name="MeridianCodeType" type="ct:String">
464 <xs:annotation>
465 <xs:documentation>Type of code used. e.g. EPSG Code</xs:documentation>
466 </xs:annotation>
467 </xs:attribute>
468 <xs:attribute name="Datum" type="DatumCodeList">
469 <xs:annotation>
470 <xs:documentation>The collection of the coordinate numeric values depends on the agreed datum within which the measurement was taken. Declaration of the datum is necessary as it cannot be assumed in the data</xs:documentation>
471 </xs:annotation>
472 </xs:attribute>
473 <xs:attribute name="DatumCodeType" type="ct:String">
474 <xs:annotation>
475 <xs:documentation>Type of code used. e.g. EPSG Code, WGS-84</xs:documentation>
476 </xs:annotation>
477 </xs:attribute>
478 <xs:attribute name="Projection" type="ProjectionCodeList">
479 <xs:annotation>
480 <xs:documentation>Coordinates have limited utility and application depending on the projection required for visualisation in a map. Declaration of projection is necessary as it cannot be assumed in data</xs:documentation>
481 </xs:annotation>
482 </xs:attribute>
483 <xs:attribute name="ProjectionCodeType" type="ct:String">
484 <xs:annotation>
485 <xs:documentation>Type of code used. e.g. EPSG Code</xs:documentation>
486 </xs:annotation>
487 </xs:attribute>
488 <xs:attributeGroup ref="ct:grDataQuality"/>
489 <xs:anyAttribute namespace="##other" processContents="lax"/>
490 </xs:complexType>
491 </xs:element>
492 </xs:sequence>
493 <xs:attribute name="Type" type="AddressTypeList">
494 <xs:annotation>
495 <xs:documentation>Defines the type of address. An address type can be" Primary Address, Secondary Address, Rural Address, Military Address, etc.</xs:documentation>
496 </xs:annotation>
497 </xs:attribute>
498 <xs:attribute name="AddressID" type="ct:String">
499 <xs:annotation>
500 <xs:documentation>A unique address identifier such as postal delivery identifier assigned to the address by local postal authority, e.g. DPID in Australia.</xs:documentation>
501 </xs:annotation>
502 </xs:attribute>
503 <xs:attribute name="AddressIDType" type="AddressIDTypeList">
504 <xs:annotation>
505 <xs:documentation>Type of address ID used. e.g. DPID, etc</xs:documentation>
506 </xs:annotation>
507 </xs:attribute>
508 <xs:attribute name="ID" type="ct:String">
509 <xs:annotation>
510 <xs:documentation>A globally unique identifier assigned to the address</xs:documentation>
511 </xs:annotation>
512 </xs:attribute>
513 <xs:attribute name="Usage" type="AddressUsageList">
514 <xs:annotation>
515 <xs:documentation>The purpose the address is used for. E.g. Postal, residential, business, exchange, update, create, delete, etc</xs:documentation>
516 </xs:annotation>
517 </xs:attribute>
518 <xs:attribute name="DeliveryMode" type="DeliveryModeList">
519 <xs:annotation>
520 <xs:documentation>Mode of delivery of address. For example: rural route, normal delivery, post office box, etc. </xs:documentation>
521 </xs:annotation>
522 </xs:attribute>
523 <xs:attribute name="Status" type="ct:StatusList">
524 <xs:annotation>
525 <xs:documentation>Status of the entity. e.g. Old, Current, Inactive, Active, etc</xs:documentation>
526 </xs:annotation>
527 </xs:attribute>
528 <xs:attributeGroup ref="ct:grValidityDate"/>
529 <xs:attribute name="AddressKey" type="ct:String">
530 <xs:annotation>
531 <xs:documentation>A primary key to reference Address.</xs:documentation>
532 </xs:annotation>
533 </xs:attribute>
534 <xs:attribute name="AddressKeyRef" type="ct:String">
535 <xs:annotation>
536 <xs:documentation>A foreign key to reference attribute Key of Address.</xs:documentation>
537 </xs:annotation>
538 </xs:attribute>
539 <xs:attribute ref="xlink:type"/>
540 <xs:attribute ref="xlink:label"/>
541 <xs:attribute ref="xlink:href"/>
542 <xs:attributeGroup ref="ct:grDataQuality"/>
543 <xs:attributeGroup ref="ct:grLanguageCode"/>
544 <xs:anyAttribute namespace="##other" processContents="lax"/>
545 </xs:complexType>
546 <xs:complexType name="CountryType">
547 <xs:annotation>
548 <xs:documentation>Complex type that defines the name of the country and is reused in other CIQ specs</xs:documentation>
549 </xs:annotation>
550 <xs:sequence>
551 <xs:element name="NameElement" maxOccurs="unbounded">
552 <xs:annotation>
553 <xs:documentation>Data associated with the name of the country in whatever form available, e.g. full, abbreviation, common use, code of the country, etc.</xs:documentation>
554 </xs:annotation>
555 <xs:complexType>
556 <xs:simpleContent>
557 <xs:extension base="ct:String">
558 <xs:attributeGroup ref="ct:grAbbreviation"/>
559 <xs:attribute name="NameType" type="CountryNameTypeList">
560 <xs:annotation>
561 <xs:documentation>Semantics of data associated with name. </xs:documentation>
562 </xs:annotation>
563 </xs:attribute>
564 <xs:attribute name="NameCode" type="CountryNameCodeList">
565 <xs:annotation>
566 <xs:documentation>Name of the country represented as a code</xs:documentation>
567 </xs:annotation>
568 </xs:attribute>
569 <xs:attribute name="NameCodeType" type="ct:String">
570 <xs:annotation>
571 <xs:documentation>Type of code used to represent name of country, e.g. iso-3166</xs:documentation>
572 </xs:annotation>
573 </xs:attribute>
574 <xs:anyAttribute namespace="##other"/>
575 </xs:extension>
576 </xs:simpleContent>
577 </xs:complexType>
578 </xs:element>
579 </xs:sequence>
580 <xs:anyAttribute namespace="##other" processContents="lax"/>
581 </xs:complexType>
582 <xs:complexType name="IdentifierType">
583 <xs:annotation>
584 <xs:documentation>Complex type for internal reuse</xs:documentation>
585 </xs:annotation>
586 <xs:simpleContent>
587 <xs:extension base="ct:String">
588 <xs:attribute name="Type" type="IdentifierElementTypeList">
589 <xs:annotation>
590 <xs:documentation>Indicates which part of number or identifier this element contains. Some "numbers" are as simple as 42 and some "numbers" are more like complex alphanumeric identifiers as Postcodes in UK or Canada, e.g. M2H 2S5. It may be necessary to separate the "number" into sub-elements and indicate what type of information each of them contains.</xs:documentation>
591 </xs:annotation>
592 </xs:attribute>
593 <xs:attributeGroup ref="ct:grAbbreviation"/>
594 <xs:anyAttribute namespace="##other" processContents="lax"/>
595 </xs:extension>
596 </xs:simpleContent>
597 </xs:complexType>
598 <xs:complexType name="PremisesType">
599 <xs:annotation>
600 <xs:documentation>Complex type for internal reuse</xs:documentation>
601 </xs:annotation>
602 <xs:choice maxOccurs="unbounded">
603 <xs:element name="NameElement">
604 <xs:annotation>
605 <xs:documentation>Data associated with the name of the Premises. e.g. Full name of premises or part of the name. E.g. Westfield shopping center, reference data to support the premises location, street in the premises</xs:documentation>
606 </xs:annotation>
607 <xs:complexType>
608 <xs:simpleContent>
609 <xs:extension base="ct:String">
610 <xs:attributeGroup ref="ct:grAbbreviation"/>
611 <xs:attribute name="NameType" type="PremisesElementTypeList">
612 <xs:annotation>
613 <xs:documentation>Describes the type / part of name this element contains.</xs:documentation>
614 </xs:annotation>
615 </xs:attribute>
616 <xs:anyAttribute namespace="##other"/>
617 </xs:extension>
618 </xs:simpleContent>
619 </xs:complexType>
620 </xs:element>
621 <xs:element name="Number" type="IdentifierType">
622 <xs:annotation>
623 <xs:documentation>Data associated with the number of the premises. E.g.House 15, number range, number suffix</xs:documentation>
624 </xs:annotation>
625 </xs:element>
626 </xs:choice>
627 <xs:anyAttribute namespace="##other" processContents="lax"/>
628 </xs:complexType>
629 <xs:complexType name="ThoroughfareType">
630 <xs:annotation>
631 <xs:documentation>Complex type for internal reuse</xs:documentation>
632 </xs:annotation>
633 <xs:choice maxOccurs="unbounded">
634 <xs:element name="NameElement">
635 <xs:annotation>
636 <xs:documentation>Data associated with the thoroughfare details. e.g. Full thoroughfare name or part of it, type of thoroughfare, old name, new name, reference data in support of the thoroughfare</xs:documentation>
637 </xs:annotation>
638 <xs:complexType>
639 <xs:simpleContent>
640 <xs:extension base="ct:String">
641 <xs:attributeGroup ref="ct:grAbbreviation"/>
642 <xs:attribute name="NameType" type="ThoroughfareNameTypeList">
643 <xs:annotation>
644 <xs:documentation>Describes the type / part of name this element contains.</xs:documentation>
645 </xs:annotation>
646 </xs:attribute>
647 <xs:anyAttribute namespace="##other"/>
648 </xs:extension>
649 </xs:simpleContent>
650 </xs:complexType>
651 </xs:element>
652 <xs:element name="Number" type="IdentifierType">
653 <xs:annotation>
654 <xs:documentation>Data associated with the number of the thoroughfare. E.g. 39 in 39 Baker Street, street range, street suffix</xs:documentation>
655 </xs:annotation>
656 </xs:element>
657 </xs:choice>
658 <xs:attribute name="Type" type="ThoroughfareTypeList">
659 <xs:annotation>
660 <xs:documentation>Type of thoroughfare. eg. primary road, secondary road, road branch (e.g. Lane 14), road sub branch (e.g. Alley 21), adjourning street, cross street, closest street, etc</xs:documentation>
661 </xs:annotation>
662 </xs:attribute>
663 <xs:attribute name="TypeCode" type="ct:String">
664 <xs:annotation>
665 <xs:documentation>Type of code use for thoroughfare</xs:documentation>
666 </xs:annotation>
667 </xs:attribute>
668 <xs:attributeGroup ref="ct:grDataQuality"/>
669 <xs:anyAttribute namespace="##other" processContents="lax"/>
670 </xs:complexType>
671 </xs:schema>