siri-xsd 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/Gemfile +4 -0
  4. data/Gemfile.lock +47 -0
  5. data/README.md +23 -0
  6. data/bitbucket-pipelines.yml +18 -0
  7. data/exe/siri-xsd-validate +42 -0
  8. data/lib/siri/xsd/validator.rb +62 -0
  9. data/lib/siri/xsd/version.rb +5 -0
  10. data/lib/siri/xsd.rb +10 -0
  11. data/siri-xsd.gemspec +35 -0
  12. data/vendor/xsd/acsb/acsb_accessibility.xsd +138 -0
  13. data/vendor/xsd/acsb/acsb_all.xsd +11 -0
  14. data/vendor/xsd/acsb/acsb_limitations.xsd +141 -0
  15. data/vendor/xsd/acsb/acsb_passengerMobility.xsd +212 -0
  16. data/vendor/xsd/datex2/DATEXIISchema.xsd +3713 -0
  17. data/vendor/xsd/datex2/DATEXIISchemaWithDefinitions.xsd +11538 -0
  18. data/vendor/xsd/gml/basicTypes.xsd +267 -0
  19. data/vendor/xsd/gml/geometryBasic0d1d-extract.xsd +271 -0
  20. data/vendor/xsd/gml/gmlBase-extract.xsd +168 -0
  21. data/vendor/xsd/gml/gmlBasic2d-extract.xsd +120 -0
  22. data/vendor/xsd/gml/gml_extract_all_objects.xsd +12 -0
  23. data/vendor/xsd/ifopt/ifopt_administration.xsd +254 -0
  24. data/vendor/xsd/ifopt/ifopt_allStopPlace.xsd +33 -0
  25. data/vendor/xsd/ifopt/ifopt_checkpoint.xsd +222 -0
  26. data/vendor/xsd/ifopt/ifopt_countries.xsd +1320 -0
  27. data/vendor/xsd/ifopt/ifopt_equipment.xsd +207 -0
  28. data/vendor/xsd/ifopt/ifopt_location.xsd +281 -0
  29. data/vendor/xsd/ifopt/ifopt_modes.xsd +84 -0
  30. data/vendor/xsd/ifopt/ifopt_modification.xsd +173 -0
  31. data/vendor/xsd/ifopt/ifopt_path.xsd +164 -0
  32. data/vendor/xsd/ifopt/ifopt_stop.xsd +403 -0
  33. data/vendor/xsd/ifopt/ifopt_time.xsd +131 -0
  34. data/vendor/xsd/ifopt/ifopt_types.xsd +96 -0
  35. data/vendor/xsd/siri/siri_all_framework.xsd +12 -0
  36. data/vendor/xsd/siri/siri_base.xsd +315 -0
  37. data/vendor/xsd/siri/siri_common_services.xsd +900 -0
  38. data/vendor/xsd/siri/siri_request_errorConditions.xsd +590 -0
  39. data/vendor/xsd/siri/siri_request_support.xsd +210 -0
  40. data/vendor/xsd/siri/siri_requests.xsd +1072 -0
  41. data/vendor/xsd/siri.xsd +531 -0
  42. data/vendor/xsd/siriSg.xsd +149 -0
  43. data/vendor/xsd/siri_all_functionalServices.xsd +95 -0
  44. data/vendor/xsd/siri_connectionMonitoring_service.xsd +731 -0
  45. data/vendor/xsd/siri_connectionTimetable_service.xsd +485 -0
  46. data/vendor/xsd/siri_discovery.xsd +898 -0
  47. data/vendor/xsd/siri_estimatedTimetable_service.xsd +490 -0
  48. data/vendor/xsd/siri_facilityMonitoring_service.xsd +493 -0
  49. data/vendor/xsd/siri_generalMessage_service.xsd +483 -0
  50. data/vendor/xsd/siri_model/siri_all.xsd +13 -0
  51. data/vendor/xsd/siri_model/siri_all_journeyModel.xsd +21 -0
  52. data/vendor/xsd/siri_model/siri_all_model.xsd +13 -0
  53. data/vendor/xsd/siri_model/siri_all_situation.xsd +17 -0
  54. data/vendor/xsd/siri_model/siri_datedVehicleJourney.xsd +702 -0
  55. data/vendor/xsd/siri_model/siri_estimatedVehicleJourney.xsd +472 -0
  56. data/vendor/xsd/siri_model/siri_facilities.xsd +517 -0
  57. data/vendor/xsd/siri_model/siri_facility.xsd +760 -0
  58. data/vendor/xsd/siri_model/siri_feature_support.xsd +145 -0
  59. data/vendor/xsd/siri_model/siri_interchangeJourney.xsd +88 -0
  60. data/vendor/xsd/siri_model/siri_journey.xsd +1903 -0
  61. data/vendor/xsd/siri_model/siri_journey_support.xsd +1022 -0
  62. data/vendor/xsd/siri_model/siri_modelPermissions.xsd +338 -0
  63. data/vendor/xsd/siri_model/siri_modes.xsd +686 -0
  64. data/vendor/xsd/siri_model/siri_monitoredVehicleJourney.xsd +638 -0
  65. data/vendor/xsd/siri_model/siri_operator_support.xsd +87 -0
  66. data/vendor/xsd/siri_model/siri_reference.xsd +844 -0
  67. data/vendor/xsd/siri_model/siri_situation.xsd +1545 -0
  68. data/vendor/xsd/siri_model/siri_situationActions.xsd +755 -0
  69. data/vendor/xsd/siri_model/siri_situationAffects.xsd +1533 -0
  70. data/vendor/xsd/siri_model/siri_situationClassifiers.xsd +430 -0
  71. data/vendor/xsd/siri_model/siri_situationIdentity.xsd +247 -0
  72. data/vendor/xsd/siri_model/siri_situationReasons.xsd +1370 -0
  73. data/vendor/xsd/siri_model/siri_situationServiceTypes.xsd +639 -0
  74. data/vendor/xsd/siri_model/siri_targetedVehicleJourney.xsd +136 -0
  75. data/vendor/xsd/siri_model/siri_time.xsd +356 -0
  76. data/vendor/xsd/siri_model_discovery/siri_connectionLink.xsd +115 -0
  77. data/vendor/xsd/siri_model_discovery/siri_feature.xsd +158 -0
  78. data/vendor/xsd/siri_model_discovery/siri_infoChannel.xsd +99 -0
  79. data/vendor/xsd/siri_model_discovery/siri_line.xsd +241 -0
  80. data/vendor/xsd/siri_model_discovery/siri_stopPoint.xsd +158 -0
  81. data/vendor/xsd/siri_productionTimetable_service.xsd +514 -0
  82. data/vendor/xsd/siri_situationExchange_service.xsd +785 -0
  83. data/vendor/xsd/siri_stopMonitoring_service.xsd +1052 -0
  84. data/vendor/xsd/siri_stopTimetable_service.xsd +463 -0
  85. data/vendor/xsd/siri_utility/siri_all_utility.xsd +14 -0
  86. data/vendor/xsd/siri_utility/siri_location.xsd +270 -0
  87. data/vendor/xsd/siri_utility/siri_participant.xsd +79 -0
  88. data/vendor/xsd/siri_utility/siri_permissions.xsd +135 -0
  89. data/vendor/xsd/siri_utility/siri_types.xsd +166 -0
  90. data/vendor/xsd/siri_utility/siri_utility.xsd +301 -0
  91. data/vendor/xsd/siri_vehicleMonitoring_service.xsd +702 -0
  92. data/vendor/xsd/siri_wsConsumer-Document.wsdl +177 -0
  93. data/vendor/xsd/siri_wsConsumer-WSDL2.wsdl +96 -0
  94. data/vendor/xsd/siri_wsConsumer.wsdl +200 -0
  95. data/vendor/xsd/siri_wsProducer-Document.wsdl +558 -0
  96. data/vendor/xsd/siri_wsProducer-WSDL2.wsdl +229 -0
  97. data/vendor/xsd/siri_wsProducer.wsdl +629 -0
  98. data/vendor/xsd/soap.xsd +118 -0
  99. data/vendor/xsd/wsdl_model/siri-wsdl.xsd +8 -0
  100. data/vendor/xsd/wsdl_model/siri_wsConsumer-Framework.xsd +98 -0
  101. data/vendor/xsd/wsdl_model/siri_wsConsumer-Services.xsd +155 -0
  102. data/vendor/xsd/wsdl_model/siri_wsProducer-DiscoveryCapability.xsd +123 -0
  103. data/vendor/xsd/wsdl_model/siri_wsProducer-Framework.xsd +138 -0
  104. data/vendor/xsd/wsdl_model/siri_wsProducer-Services.xsd +263 -0
  105. data/vendor/xsd/xml/2008/09/xsd.xsl +997 -0
  106. data/vendor/xsd/xml/2009/01/XMLSchema.xsd +286 -0
  107. metadata +222 -0
@@ -0,0 +1,1545 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xsd:schema xmlns="http://www.siri.org.uk/siri" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ifopt="http://www.ifopt.org.uk/ifopt" xmlns:acsb="http://www.ifopt.org.uk/acsb" xmlns:D2LogicalModel="http://datex2.eu/schema/2_0RC1/2_0" targetNamespace="http://www.siri.org.uk/siri" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.1" id="siri_situation">
3
+ <!--
4
+ siri_model\siri_situation-v2.0.xsd:
5
+ 19.12.2017 D. Rubli, Siri_XML-2.0p_a0.2:
6
+ - Concequence.Period changed to unbounded.
7
+ 12.01.2018 D. Rubli, Siri_XML-2.0p synchronisation of recommendation with xsd:
8
+ - RelatedToEnumeration Enum value "correctionTo" added according to recommendation document.
9
+ - WorkflowStatusEnumeration Enum value "pendingApproval" added according to recommendation document.
10
+ - AudienceEnumeration Enum value "authorities" added according to recommendation document.
11
+ - AudienceEnumeration Enum value "transportOperators" added according to recommendation document.
12
+ 13.06.2018 D. Rubli, Siri_XML-2.0p_a0.5:
13
+ - StatusGroup.Progress changed from optional to mandatory
14
+ - PublicationWindow changed to unbounded
15
+ -->
16
+ <!-- ======================================================================= -->
17
+ <!--Needed to work around import limitation in JAXB - all namespaces. -->
18
+ <xsd:import namespace="http://www.ifopt.org.uk/acsb" schemaLocation="../acsb/acsb_all.xsd"/>
19
+ <xsd:import namespace="http://www.ifopt.org.uk/acsb" schemaLocation="../acsb/acsb_accessibility.xsd"/>
20
+ <xsd:import namespace="http://www.ifopt.org.uk/ifopt" schemaLocation="../ifopt/ifopt_countries.xsd"/>
21
+ <xsd:import namespace="http://datex2.eu/schema/2_0RC1/2_0" schemaLocation="../datex2/DATEXIISchema.xsd"/>
22
+ <!-- ======================================================================= -->
23
+ <xsd:include schemaLocation="siri_situationIdentity.xsd"/>
24
+ <xsd:include schemaLocation="siri_situationServiceTypes.xsd"/>
25
+ <xsd:include schemaLocation="siri_situationReasons.xsd"/>
26
+ <xsd:include schemaLocation="siri_situationAffects.xsd"/>
27
+ <xsd:include schemaLocation="siri_situationActions.xsd"/>
28
+ <xsd:include schemaLocation="../siri_utility/siri_types.xsd"/>
29
+ <!-- ======================================================================= -->
30
+ <xsd:annotation>
31
+ <xsd:appinfo>
32
+ <Metadata xmlns="http://www.govtalk.gov.uk/CM/gms-xs">
33
+ <Aggregation>main schema</Aggregation>
34
+ <Audience>e-service developers</Audience>
35
+ <Contributor>Waldemar Isajkin (INIT GmbH)</Contributor>
36
+ <Coverage>Europe</Coverage>
37
+ <Creator>Drafted for version 1.0 Kizoom SITUATION Schema Nicholas Knowles, Kizoom. mailto:schemer@kizoom.org.uk</Creator>
38
+ <Date>
39
+ <Created>2004-09-29</Created>
40
+ </Date>
41
+ <Date>
42
+ <Modified>2004-10-01</Modified>
43
+ </Date>
44
+ <Date>
45
+ <Modified>2007-05-14</Modified>
46
+ </Date>
47
+ <Date>
48
+ <Modified>2008-07-05</Modified>
49
+ <!--
50
+ 1) correct data type to be participant ref not participant pair.
51
+ 2) add missing scopeType to classifier.
52
+ -->
53
+ </Date>
54
+ <Date>
55
+ <Modified>2011-04-18</Modified>
56
+ <!-- AffectedVehicleJourney should allow multiple journeys. Brian Ferris onebusaway.org -->
57
+ </Date>
58
+ <Date>
59
+ <Modified>2012-03-23</Modified>
60
+ <!-- +SIRI v2.0
61
+ Use revised 2.0 definitions
62
+ Update to use DATEXII V2.0 schema
63
+ Namespace changed from http://datex2.eu/schema/1_0/1_0 to http://datex2.eu/schema/2_0RC1/2_0
64
+ D2LogicalModel:ReferencePointLinear has been renamed to D2LogicalModel:ReferencePointLinear
65
+ DelayCodeENum renamed to DelayBandEnum
66
+ InformationUsageOverride / D2LogicalModel:InformationUsage dropped for D2
67
+ D2LogicalModel:SourceInformation renamed to D2LogicalModel:Source
68
+ D2LogicalModel:SourceInformation values wrapped in valuse tag
69
+ D2LogicalModel:Advice dropped.
70
+ D2LogicalModel:Imppact ImpactDetails wrapper tag dropped.
71
+ D2TrafficRestrictionType renamed to trafficConstrictionType
72
+ Correct type on EasementRef to normalized string.
73
+ Allow translations of NLString elements
74
+ -->
75
+ </Date>
76
+ <Date>
77
+ <Modified>2013-02-11</Modified>
78
+ <!-- Correction: Certain elements of DescriptionGroup unbounded. -->
79
+ </Date>
80
+ <Date>
81
+ <Modified>2013-10-01</Modified>
82
+ <!-- [VDV] Added TpegSubReasonGroup to the ReasonGroup as described in the SX Documentation -->
83
+ </Date>
84
+ <Date>
85
+ <Modified>2014-06-20</Modified>
86
+ <!-- [fr] Add additional small delay bands -->
87
+ </Date>
88
+ <Date>
89
+ <Modified>2019-09-01</Modified>
90
+ <!-- SIRI v2.1
91
+ Align with TPEG2
92
+ Removed SubReason
93
+ Added AdviceType, AdviceName, ConditionName, ConditionGroup
94
+ -->
95
+ </Date>
96
+ <Description>
97
+ <p>SIRI-SX is an XML schema for the exchange of structured SITUATIONs </p>
98
+ </Description>
99
+ <Format>
100
+ <MediaType>text/xml</MediaType>
101
+ <Syntax>http://www.w3.org/2001/XMLSchema</Syntax>
102
+ <Description>XML schema, W3C Recommendation 2001</Description>
103
+ </Format>
104
+ <Identifier>{http://www.siri.org.uk/schema/2.0/xsd/}siri_model/siri_situation.xsd</Identifier>
105
+ <Language>[ISO 639-2/B] ENG</Language>
106
+ <Publisher>CEN</Publisher>
107
+ <Relation>
108
+ <Requires>http://www.siri.org.uk/schema/2.0/xsd/siri_model/siri_stop.xsd</Requires>
109
+ <Requires>http://www.siri.org.uk/schema/2.0/xsd/siri_model/siri_modes.xsd</Requires>
110
+ <Requires>http://www.siri.org.uk/schema/2.0/xsd/siri_model/siri_monitoredVehicleJourney.xsd</Requires>
111
+ </Relation>
112
+ <Rights><!--Unclassified-->
113
+ <Copyright>Kizoom 2000-2005, CEN 2009-2021</Copyright>
114
+ </Rights>
115
+ <Source>
116
+ <ul>
117
+ <li>Schema Derived from the Kizoom XTIS schema </li>
118
+ </ul>
119
+ </Source>
120
+ <Status>Version 2.1</Status>
121
+ <Subject>
122
+ <Category>Arts, recreation and travel, Tourism, Travel (tourism), Transport,
123
+ Air transport, Airports,
124
+ Ports and maritime transport, Ferries (marine),
125
+ Public transport, Bus services, Coach services, Bus stops and stations,
126
+ Rail transport, Railway stations and track, Train services, Underground trains,
127
+ Business and industry, Transport, Air transport, Ports and maritime transport, Public transport,
128
+ Rail transport, Roads and road transport
129
+ </Category>
130
+ <Project>CEN TC278 WG3 SG7</Project>
131
+ </Subject>
132
+ <Title>SIRI-SX Xml Schema for PT SITUATIONs. Common element subschema</Title>
133
+ <Type>Standard</Type>
134
+ </Metadata>
135
+ </xsd:appinfo>
136
+ <xsd:documentation>SIRI-SX Situation Model.</xsd:documentation>
137
+ </xsd:annotation>
138
+ <!-- ======================================================================= -->
139
+ <xsd:complexType name="AbstractSituationElementStructure">
140
+ <xsd:annotation>
141
+ <xsd:documentation>Type for abstract EntryAbstract type.</xsd:documentation>
142
+ </xsd:annotation>
143
+ <xsd:sequence>
144
+ <xsd:element name="CreationTime" type="xsd:dateTime">
145
+ <xsd:annotation>
146
+ <xsd:documentation>Time of creation of SITUATION.</xsd:documentation>
147
+ </xsd:annotation>
148
+ </xsd:element>
149
+ <xsd:group ref="SituationSharedIdentityGroup"/>
150
+ </xsd:sequence>
151
+ </xsd:complexType>
152
+ <xsd:complexType name="SituationElementStructure">
153
+ <xsd:annotation>
154
+ <xsd:documentation>Type for loggable Entry.</xsd:documentation>
155
+ </xsd:annotation>
156
+ <xsd:complexContent>
157
+ <xsd:extension base="AbstractSituationElementStructure">
158
+ <xsd:sequence>
159
+ <xsd:group ref="SituationInfoGroup"/>
160
+ <xsd:element name="VersionedAtTime" type="xsd:dateTime" minOccurs="0">
161
+ <xsd:annotation>
162
+ <xsd:documentation>Time at which SITUATION element was versioned. Once versioned, no further changes can be made.</xsd:documentation>
163
+ </xsd:annotation>
164
+ </xsd:element>
165
+ </xsd:sequence>
166
+ </xsd:extension>
167
+ </xsd:complexContent>
168
+ </xsd:complexType>
169
+ <xsd:group name="SituationInfoGroup">
170
+ <xsd:annotation>
171
+ <xsd:documentation>situation Informatiion.</xsd:documentation>
172
+ </xsd:annotation>
173
+ <xsd:sequence>
174
+ <xsd:element name="References" type="ReferencesStructure" minOccurs="0">
175
+ <xsd:annotation>
176
+ <xsd:documentation>Associations with other SITUATIONs.</xsd:documentation>
177
+ </xsd:annotation>
178
+ </xsd:element>
179
+ <xsd:element name="Source" type="SituationSourceStructure">
180
+ <xsd:annotation>
181
+ <xsd:documentation>Information about source of information, that is, where the agent using the capture client obtained an item of information, or in the case of an automated feed, an identifier of the specific feed. Can be used to obtain updates, verify details or otherwise assess relevance.</xsd:documentation>
182
+ </xsd:annotation>
183
+ </xsd:element>
184
+ </xsd:sequence>
185
+ </xsd:group>
186
+ <xsd:complexType name="ReferencesStructure">
187
+ <xsd:annotation>
188
+ <xsd:documentation>Type for references.</xsd:documentation>
189
+ </xsd:annotation>
190
+ <xsd:sequence>
191
+ <xsd:element name="RelatedToRef" type="RelatedSituationStructure" maxOccurs="unbounded">
192
+ <xsd:annotation>
193
+ <xsd:documentation>A reference to another SITUATION with an indication of the nature of the association, e.g. a cause, a result, an update. Note that a Entry that is an update, i.e. has the same IdentifierNumber but a later version number as a previous Entry alway has a supercedes relationship and this does not need to be expliciitly coded.</xsd:documentation>
194
+ </xsd:annotation>
195
+ </xsd:element>
196
+ </xsd:sequence>
197
+ </xsd:complexType>
198
+ <xsd:complexType name="RelatedSituationStructure">
199
+ <xsd:annotation>
200
+ <xsd:documentation>Type for a reference.</xsd:documentation>
201
+ </xsd:annotation>
202
+ <xsd:sequence>
203
+ <xsd:element name="CreationTime" type="xsd:dateTime">
204
+ <xsd:annotation>
205
+ <xsd:documentation>Time of creation of 'related to' assocation.</xsd:documentation>
206
+ </xsd:annotation>
207
+ </xsd:element>
208
+ <xsd:group ref="SituationSharedIdentityGroup">
209
+ <xsd:annotation>
210
+ <xsd:documentation>Elements identifying a SITUATION element or an update to a SITUATION. Participant reference is optional and may be supplied from context.</xsd:documentation>
211
+ </xsd:annotation>
212
+ </xsd:group>
213
+ <xsd:element name="ExternalReference" type="xsd:string" minOccurs="0">
214
+ <xsd:annotation>
215
+ <xsd:documentation>A single string that identifiers the referenced SITUATION.</xsd:documentation>
216
+ </xsd:annotation>
217
+ </xsd:element>
218
+ <xsd:element name="RelatedAs" type="RelatedToEnumeration" minOccurs="0">
219
+ <xsd:annotation>
220
+ <xsd:documentation>Relationship of refercence to the referncing SITUATION e.</xsd:documentation>
221
+ </xsd:annotation>
222
+ </xsd:element>
223
+ <xsd:element ref="Extensions" minOccurs="0"/>
224
+ </xsd:sequence>
225
+ </xsd:complexType>
226
+ <xsd:simpleType name="RelatedToEnumeration">
227
+ <xsd:annotation>
228
+ <xsd:documentation>Values for Type of Source.</xsd:documentation>
229
+ </xsd:annotation>
230
+ <xsd:restriction base="xsd:NMTOKEN">
231
+ <xsd:enumeration value="cause"/>
232
+ <xsd:enumeration value="effect"/>
233
+ <xsd:enumeration value="correctionTo"/>
234
+ <xsd:enumeration value="update"/>
235
+ <xsd:enumeration value="supercedes"/>
236
+ <xsd:enumeration value="supercededBy"/>
237
+ <xsd:enumeration value="associated"/>
238
+ </xsd:restriction>
239
+ </xsd:simpleType>
240
+ <!--===PT SITUATION =========================================== -->
241
+ <xsd:element name="PtSituationElement" type="PtSituationElementStructure">
242
+ <xsd:annotation>
243
+ <xsd:documentation>Type for individual IPT ncident.</xsd:documentation>
244
+ </xsd:annotation>
245
+ </xsd:element>
246
+ <xsd:complexType name="PtSituationElementStructure">
247
+ <xsd:annotation>
248
+ <xsd:documentation>Type for individual PT SITUATION.</xsd:documentation>
249
+ </xsd:annotation>
250
+ <xsd:complexContent>
251
+ <xsd:extension base="SituationElementStructure">
252
+ <xsd:sequence>
253
+ <xsd:group ref="PtSituationBodyGroup"/>
254
+ <xsd:element ref="Extensions" minOccurs="0"/>
255
+ </xsd:sequence>
256
+ </xsd:extension>
257
+ </xsd:complexContent>
258
+ </xsd:complexType>
259
+ <xsd:group name="PtSituationBodyGroup">
260
+ <xsd:annotation>
261
+ <xsd:documentation>Body of SITUATION.</xsd:documentation>
262
+ </xsd:annotation>
263
+ <xsd:sequence>
264
+ <xsd:group ref="StatusGroup"/>
265
+ <xsd:sequence>
266
+ <xsd:group ref="TemporalGroup"/>
267
+ <xsd:group ref="ClassifierGroup"/>
268
+ <xsd:group ref="DescriptionGroup"/>
269
+ <xsd:group ref="PtBodyGroup" minOccurs="0"/>
270
+ </xsd:sequence>
271
+ </xsd:sequence>
272
+ </xsd:group>
273
+ <xsd:group name="PtBodyGroup">
274
+ <xsd:annotation>
275
+ <xsd:documentation>Body of SITUATION.</xsd:documentation>
276
+ </xsd:annotation>
277
+ <xsd:sequence>
278
+ <xsd:element name="Affects" type="AffectsScopeStructure" minOccurs="0">
279
+ <xsd:annotation>
280
+ <xsd:documentation>Structured model identifiying parts of transport network affected by SITUATION. OPERATOR and NETWORK values will be defaulted to values in general Context unless explicitly overridden.</xsd:documentation>
281
+ </xsd:annotation>
282
+ </xsd:element>
283
+ <xsd:element name="Consequences" type="PtConsequencesStructure" minOccurs="0">
284
+ <xsd:annotation>
285
+ <xsd:documentation>Structured model describing effect of the SITUATION on PT system.</xsd:documentation>
286
+ </xsd:annotation>
287
+ </xsd:element>
288
+ <xsd:element name="PublishingActions" type="ActionsStructure" minOccurs="0">
289
+ <xsd:annotation>
290
+ <xsd:documentation>Structured model describing distribution actions to handle SITUATION. Any actions stated completely replace those from Context. If no actions are stated, any actions from general Context are used.</xsd:documentation>
291
+ </xsd:annotation>
292
+ </xsd:element>
293
+ </xsd:sequence>
294
+ </xsd:group>
295
+ <!--===PT SITUATION =========================================== -->
296
+ <xsd:element name="RoadSituationElement" type="RoadSituationElementStructure">
297
+ <xsd:annotation>
298
+ <xsd:documentation>Type for individual IPT ncident.</xsd:documentation>
299
+ </xsd:annotation>
300
+ </xsd:element>
301
+ <xsd:complexType name="RoadSituationElementStructure">
302
+ <xsd:annotation>
303
+ <xsd:documentation>Type for individual PT SITUATION.</xsd:documentation>
304
+ </xsd:annotation>
305
+ <xsd:complexContent>
306
+ <xsd:extension base="SituationElementStructure">
307
+ <xsd:sequence>
308
+ <xsd:group ref="RoadSituationBodyGroup"/>
309
+ <xsd:element ref="Extensions" minOccurs="0"/>
310
+ </xsd:sequence>
311
+ </xsd:extension>
312
+ </xsd:complexContent>
313
+ </xsd:complexType>
314
+ <xsd:group name="RoadSituationBodyGroup">
315
+ <xsd:annotation>
316
+ <xsd:documentation>Body of SITUATION.</xsd:documentation>
317
+ </xsd:annotation>
318
+ <xsd:sequence>
319
+ <xsd:group ref="StatusGroup"/>
320
+ <xsd:sequence>
321
+ <xsd:group ref="TemporalGroup"/>
322
+ <xsd:group ref="ClassifierGroup"/>
323
+ <xsd:group ref="DescriptionGroup"/>
324
+ <xsd:group ref="RoadBodyGroup"/>
325
+ </xsd:sequence>
326
+ </xsd:sequence>
327
+ </xsd:group>
328
+ <xsd:group name="RoadBodyGroup">
329
+ <xsd:annotation>
330
+ <xsd:documentation>Datex 2 SITUATION.</xsd:documentation>
331
+ </xsd:annotation>
332
+ <xsd:sequence>
333
+ <xsd:element name="Affects" type="AffectsScopeStructure" minOccurs="0">
334
+ <xsd:annotation>
335
+ <xsd:documentation>Structured model identifiying parts of transport network affected by SITUATION. OPERATOR and Network values will be defaulted to values in general Context unless explicitly overridden.</xsd:documentation>
336
+ </xsd:annotation>
337
+ </xsd:element>
338
+ <xsd:element name="Consequences" type="PtConsequencesStructure" minOccurs="0">
339
+ <xsd:annotation>
340
+ <xsd:documentation>Structured model describing effect of the SITUATION on PT system.</xsd:documentation>
341
+ </xsd:annotation>
342
+ </xsd:element>
343
+ <xsd:element name="PublishingActions" type="ActionsStructure" minOccurs="0">
344
+ <xsd:annotation>
345
+ <xsd:documentation>Structured model describing distribution actions to handle SITUATION. Any actions stated completely replace those from Context. If no actions are stated, any actions from general Context are used.</xsd:documentation>
346
+ </xsd:annotation>
347
+ </xsd:element>
348
+ <xsd:element name="SituationRecord" type="D2LogicalModel:SituationRecord" minOccurs="0">
349
+ <xsd:annotation>
350
+ <xsd:documentation>Datex2 SITUATION Record.</xsd:documentation>
351
+ </xsd:annotation>
352
+ </xsd:element>
353
+ </xsd:sequence>
354
+ </xsd:group>
355
+ <xsd:group name="Datex2ManagementGroup">
356
+ <xsd:annotation>
357
+ <xsd:documentation>Datex2 SITUATION management elements.</xsd:documentation>
358
+ </xsd:annotation>
359
+ <xsd:sequence>
360
+ <xsd:element name="situationRecordCreationReference" type="D2LogicalModel:String">
361
+ <xsd:annotation>
362
+ <xsd:documentation>A unique alphanumeric reference (either an external reference or GUID) of the SITUATIONRecord object (the first version of the record) that was created by the original supplier.</xsd:documentation>
363
+ </xsd:annotation>
364
+ </xsd:element>
365
+ <xsd:element name="situationRecordCreationTime" type="D2LogicalModel:DateTime" minOccurs="0">
366
+ <xsd:annotation>
367
+ <xsd:documentation>The date/time that the SITUATIONRecord object (the first version of the record) was created by the original supplier.</xsd:documentation>
368
+ </xsd:annotation>
369
+ </xsd:element>
370
+ <xsd:element name="situationRecordObservationTime" type="D2LogicalModel:DateTime" minOccurs="0">
371
+ <xsd:annotation>
372
+ <xsd:documentation>The date/time that the information represented by the current version of the SITUATIONRecord was observed by the original (potentially external) source of the information.</xsd:documentation>
373
+ </xsd:annotation>
374
+ </xsd:element>
375
+ <xsd:element name="situationRecordVersion" type="D2LogicalModel:NonNegativeInteger" minOccurs="0">
376
+ <xsd:annotation>
377
+ <xsd:documentation>Each record within a SITUATION may iterate through a series of versions during its life time. The SITUATION record version uniquely identifies the version of a particular record within a SITUATION. It is generated and used by systems external to DATEX 2.</xsd:documentation>
378
+ </xsd:annotation>
379
+ </xsd:element>
380
+ <xsd:element name="situationRecordVersionTime" type="D2LogicalModel:DateTime" minOccurs="0">
381
+ <xsd:annotation>
382
+ <xsd:documentation>The date/time that this current version of the SITUATIONRecord was written into the database of the supplier which is involved in the data exchange.</xsd:documentation>
383
+ </xsd:annotation>
384
+ </xsd:element>
385
+ <xsd:element name="situationRecordFirstSupplierVersionTime" type="D2LogicalModel:DateTime">
386
+ <xsd:annotation>
387
+ <xsd:documentation>The date/time that the current version of the SITUATION Record was written into the database of the original supplier in the supply chain.</xsd:documentation>
388
+ </xsd:annotation>
389
+ </xsd:element>
390
+ </xsd:sequence>
391
+ </xsd:group>
392
+ <xsd:group name="Datex2SituationGroup">
393
+ <xsd:annotation>
394
+ <xsd:documentation>Datex2 SITUATION common elements.</xsd:documentation>
395
+ </xsd:annotation>
396
+ <xsd:sequence>
397
+ <xsd:element name="probabilityOfOccurrence" type="D2LogicalModel:ProbabilityOfOccurrenceEnum" minOccurs="0">
398
+ <xsd:annotation>
399
+ <xsd:documentation>An assessment of the degree of likelihood that the reported event will occur.</xsd:documentation>
400
+ </xsd:annotation>
401
+ </xsd:element>
402
+ <xsd:element name="Source" type="D2LogicalModel:Source" minOccurs="0"/>
403
+ <xsd:element name="validity" type="D2LogicalModel:Validity" minOccurs="0"/>
404
+ </xsd:sequence>
405
+ </xsd:group>
406
+ <xsd:group name="Datex2RoadGroup">
407
+ <xsd:annotation>
408
+ <xsd:documentation>Datex2 Trrffic element road.</xsd:documentation>
409
+ </xsd:annotation>
410
+ <xsd:sequence>
411
+ <xsd:element name="impact" type="D2LogicalModel:Impact" minOccurs="0">
412
+ <xsd:annotation>
413
+ <xsd:documentation>Impact of Road SITUATION as specified by Datex2.</xsd:documentation>
414
+ </xsd:annotation>
415
+ </xsd:element>
416
+ <xsd:element name="cause" type="D2LogicalModel:Cause" minOccurs="0">
417
+ <xsd:annotation>
418
+ <xsd:documentation>Impact of Road SITUATION as specified by Datex2 model.</xsd:documentation>
419
+ </xsd:annotation>
420
+ </xsd:element>
421
+ <xsd:element name="generalPublicComment" type="D2LogicalModel:Comment" minOccurs="0" maxOccurs="unbounded">
422
+ <xsd:annotation>
423
+ <xsd:documentation> Datex 2 comments for public use.</xsd:documentation>
424
+ </xsd:annotation>
425
+ </xsd:element>
426
+ <xsd:element name="nonGeneralPublicComment" type="D2LogicalModel:Comment" minOccurs="0" maxOccurs="unbounded">
427
+ <xsd:annotation>
428
+ <xsd:documentation>Ccomments not for public use.</xsd:documentation>
429
+ </xsd:annotation>
430
+ </xsd:element>
431
+ <xsd:element name="groupOfLocations" type="D2LogicalModel:GroupOfLocations" minOccurs="0">
432
+ <xsd:annotation>
433
+ <xsd:documentation>Datex 2 model of where event ois taking place on the road.</xsd:documentation>
434
+ </xsd:annotation>
435
+ </xsd:element>
436
+ </xsd:sequence>
437
+ </xsd:group>
438
+ <xsd:group name="Datex2OtherGroup">
439
+ <xsd:annotation>
440
+ <xsd:documentation>Datex2 Tarffic element.</xsd:documentation>
441
+ </xsd:annotation>
442
+ <xsd:sequence>
443
+ <xsd:element name="management" type="D2LogicalModel:Management" minOccurs="0"/>
444
+ <xsd:element name="situationRecordExtension" type="D2LogicalModel:ExtensionType" minOccurs="0"/>
445
+ <xsd:element name="trafficElementExtension" type="D2LogicalModel:ExtensionType" minOccurs="0"/>
446
+ </xsd:sequence>
447
+ </xsd:group>
448
+ <xsd:complexType name="AffectedRoadStructure">
449
+ <xsd:annotation>
450
+ <xsd:documentation>Type for Raod scope for scope of SITUATION or effect.</xsd:documentation>
451
+ </xsd:annotation>
452
+ <xsd:sequence>
453
+ <xsd:element name="Road" type="D2LogicalModel:RoadsideReferencePointLinear" minOccurs="0">
454
+ <xsd:annotation>
455
+ <xsd:documentation>Affected Road as described by a Date2x location.</xsd:documentation>
456
+ </xsd:annotation>
457
+ </xsd:element>
458
+ <xsd:group ref="ProjectionGroup">
459
+ <xsd:annotation>
460
+ <xsd:documentation>Optional spatial projection of road. Can be used to distribute the path of the road to systems that do not already hold it. To pass just a Reference, use Datex2 location.</xsd:documentation>
461
+ </xsd:annotation>
462
+ </xsd:group>
463
+ <xsd:element ref="Extensions" minOccurs="0"/>
464
+ </xsd:sequence>
465
+ </xsd:complexType>
466
+ <xsd:complexType name="OptionalTrafficElementStructure" abstract="true">
467
+ <xsd:annotation>
468
+ <xsd:documentation>An event which is not planned by the traffic OPERATOR, which is affecting, or has the potential to affect traffic flow. This SIRI-SX element embeds the Datex2 TrafficElement, making all elements optional because they may alternatvielky be specified by common SIRI-SRX SITUATION elements.</xsd:documentation>
469
+ </xsd:annotation>
470
+ <xsd:sequence>
471
+ <xsd:group ref="Datex2ManagementGroup"/>
472
+ <xsd:group ref="Datex2SituationGroup"/>
473
+ <xsd:group ref="Datex2RoadGroup"/>
474
+ <xsd:group ref="Datex2OtherGroup"/>
475
+ </xsd:sequence>
476
+ </xsd:complexType>
477
+ <!-- ===Source================================================= -->
478
+ <xsd:simpleType name="SituationSourceTypeEnumeration">
479
+ <xsd:annotation>
480
+ <xsd:documentation>Values for Type of Source.</xsd:documentation>
481
+ </xsd:annotation>
482
+ <xsd:restriction base="xsd:NMTOKEN">
483
+ <xsd:enumeration value="directReport"/>
484
+ <xsd:enumeration value="email"/>
485
+ <xsd:enumeration value="phone"/>
486
+ <xsd:enumeration value="fax"/>
487
+ <xsd:enumeration value="post"/>
488
+ <xsd:enumeration value="feed"/>
489
+ <xsd:enumeration value="radio"/>
490
+ <xsd:enumeration value="tv"/>
491
+ <xsd:enumeration value="web"/>
492
+ <xsd:enumeration value="pager"/>
493
+ <xsd:enumeration value="text"/>
494
+ <xsd:enumeration value="other"/>
495
+ </xsd:restriction>
496
+ </xsd:simpleType>
497
+ <xsd:complexType name="SituationSourceStructure">
498
+ <xsd:annotation>
499
+ <xsd:documentation>Type for a source, i.e. provider of information.</xsd:documentation>
500
+ </xsd:annotation>
501
+ <xsd:sequence>
502
+ <xsd:element name="Country" type="ifopt:CountryRefStructure" minOccurs="0">
503
+ <xsd:annotation>
504
+ <xsd:documentation>Country of origin of source element.</xsd:documentation>
505
+ </xsd:annotation>
506
+ </xsd:element>
507
+ <xsd:element name="SourceType" type="SituationSourceTypeEnumeration">
508
+ <xsd:annotation>
509
+ <xsd:documentation>Nature of Source.</xsd:documentation>
510
+ </xsd:annotation>
511
+ </xsd:element>
512
+ <xsd:group ref="SituationSourceDetailsGroup">
513
+ <xsd:annotation>
514
+ <xsd:documentation>Further contact details about source. May be used for udpoates or verifcation.</xsd:documentation>
515
+ </xsd:annotation>
516
+ </xsd:group>
517
+ <xsd:element name="SourceMethod" type="D2LogicalModel:SourceTypeEnum" minOccurs="0">
518
+ <xsd:annotation>
519
+ <xsd:documentation>Nature of method used to get Source.</xsd:documentation>
520
+ </xsd:annotation>
521
+ </xsd:element>
522
+ <xsd:element name="AgentReference" type="xsd:string" minOccurs="0">
523
+ <xsd:annotation>
524
+ <xsd:documentation>Reference to an Agent, i.e. Capture client user who input a SITUATION. Available for use in intranet exchange of SITUATIONs.</xsd:documentation>
525
+ </xsd:annotation>
526
+ </xsd:element>
527
+ <xsd:element name="Name" type="NaturalLanguageStringStructure" minOccurs="0">
528
+ <xsd:annotation>
529
+ <xsd:documentation>Name of for source.</xsd:documentation>
530
+ </xsd:annotation>
531
+ </xsd:element>
532
+ <xsd:element name="SourceRole" type="xsd:string" minOccurs="0">
533
+ <xsd:annotation>
534
+ <xsd:documentation>Job title of Source.</xsd:documentation>
535
+ </xsd:annotation>
536
+ </xsd:element>
537
+ <xsd:element name="TimeOfCommunication" type="xsd:dateTime" minOccurs="0">
538
+ <xsd:annotation>
539
+ <xsd:documentation>Time of communication of message, if different from creation time.</xsd:documentation>
540
+ </xsd:annotation>
541
+ </xsd:element>
542
+ <xsd:element name="ExternalCode" type="xsd:string" minOccurs="0">
543
+ <xsd:annotation>
544
+ <xsd:documentation>External system reference to SITUATION.</xsd:documentation>
545
+ </xsd:annotation>
546
+ </xsd:element>
547
+ <xsd:element name="SourceFile" type="xsd:anyURI" minOccurs="0">
548
+ <xsd:annotation>
549
+ <xsd:documentation>Electronic file / attachment containing information about SITUATION.</xsd:documentation>
550
+ </xsd:annotation>
551
+ </xsd:element>
552
+ <xsd:element ref="Extensions" minOccurs="0"/>
553
+ </xsd:sequence>
554
+ </xsd:complexType>
555
+ <xsd:group name="SituationSourceDetailsGroup">
556
+ <xsd:annotation>
557
+ <xsd:documentation>Group of source details.</xsd:documentation>
558
+ </xsd:annotation>
559
+ <xsd:sequence>
560
+ <xsd:element name="Email" type="EmailAddressType" minOccurs="0">
561
+ <xsd:annotation>
562
+ <xsd:documentation>Email of Supplier of information.</xsd:documentation>
563
+ </xsd:annotation>
564
+ </xsd:element>
565
+ <xsd:element name="Phone" type="PhoneType" minOccurs="0">
566
+ <xsd:annotation>
567
+ <xsd:documentation>Phone number of Supplier of information.</xsd:documentation>
568
+ </xsd:annotation>
569
+ </xsd:element>
570
+ <xsd:element name="Fax" type="PhoneType" minOccurs="0">
571
+ <xsd:annotation>
572
+ <xsd:documentation>Fax number of Supplier of information.</xsd:documentation>
573
+ </xsd:annotation>
574
+ </xsd:element>
575
+ <xsd:element name="Web" type="xsd:anyURI" minOccurs="0">
576
+ <xsd:annotation>
577
+ <xsd:documentation>Information was obtained from a web site URL of site and/or page.</xsd:documentation>
578
+ </xsd:annotation>
579
+ </xsd:element>
580
+ <xsd:element name="Other" type="xsd:string" minOccurs="0">
581
+ <xsd:annotation>
582
+ <xsd:documentation>Other information about source.</xsd:documentation>
583
+ </xsd:annotation>
584
+ </xsd:element>
585
+ </xsd:sequence>
586
+ </xsd:group>
587
+ <!-- ===Status================================================= -->
588
+ <xsd:group name="StatusGroup">
589
+ <xsd:annotation>
590
+ <xsd:documentation>Status elements.</xsd:documentation>
591
+ </xsd:annotation>
592
+ <xsd:sequence>
593
+ <xsd:element name="Verification" minOccurs="0">
594
+ <xsd:annotation>
595
+ <xsd:documentation>Whether the SITUATION has been verified.</xsd:documentation>
596
+ </xsd:annotation>
597
+ <xsd:simpleType>
598
+ <xsd:restriction base="VerificationStatusEnumeration"/>
599
+ </xsd:simpleType>
600
+ </xsd:element>
601
+ <xsd:element name="Progress" type="WorkflowStatusEnumeration" default="open" minOccurs="0">
602
+ <xsd:annotation>
603
+ <xsd:documentation>ProgressStatus. One of a specified set of overall processing states assigned to SITUATION. For example, 'Draft' for not yet published; 'Published' for live SITUATIONs; 'Closed' indicates a completed SITUATION.</xsd:documentation>
604
+ </xsd:annotation>
605
+ </xsd:element>
606
+ <xsd:element name="QualityIndex" type="QualityIndexEnumeration" default="reliable" minOccurs="0">
607
+ <xsd:annotation>
608
+ <xsd:documentation>Assessement of likely correctness of data. Default is reliable</xsd:documentation>
609
+ </xsd:annotation>
610
+ </xsd:element>
611
+ <xsd:element name="Reality" type="D2LogicalModel:InformationStatusEnum" minOccurs="0">
612
+ <xsd:annotation>
613
+ <xsd:documentation>Whether SITUATION is real or a test.</xsd:documentation>
614
+ </xsd:annotation>
615
+ </xsd:element>
616
+ <xsd:element name="Likelihood" type="D2LogicalModel:ProbabilityOfOccurrenceEnum" minOccurs="0">
617
+ <xsd:annotation>
618
+ <xsd:documentation>Likellihood of a future situation happening.</xsd:documentation>
619
+ </xsd:annotation>
620
+ </xsd:element>
621
+ <xsd:element name="Publication" type="PublicationStatusType" minOccurs="0" maxOccurs="unbounded">
622
+ <xsd:annotation>
623
+ <xsd:documentation>Publishing status one of a specified set of substates to which a SITUATION can be assigned.</xsd:documentation>
624
+ </xsd:annotation>
625
+ </xsd:element>
626
+ </xsd:sequence>
627
+ </xsd:group>
628
+ <xsd:simpleType name="WorkflowStatusEnumeration">
629
+ <xsd:annotation>
630
+ <xsd:documentation>Values for Entry Status.</xsd:documentation>
631
+ </xsd:annotation>
632
+ <xsd:restriction base="xsd:NMTOKEN">
633
+ <xsd:enumeration value="draft"/>
634
+ <xsd:enumeration value="pendingApproval"/>
635
+ <xsd:enumeration value="approvedDraft"/>
636
+ <xsd:enumeration value="open"/>
637
+ <xsd:enumeration value="published"/>
638
+ <xsd:enumeration value="closing"/>
639
+ <xsd:enumeration value="closed"/>
640
+ </xsd:restriction>
641
+ </xsd:simpleType>
642
+ <xsd:simpleType name="PublicationStatusType">
643
+ <xsd:annotation>
644
+ <xsd:documentation>Type for Publication status.</xsd:documentation>
645
+ </xsd:annotation>
646
+ <xsd:restriction base="xsd:NMTOKEN"/>
647
+ </xsd:simpleType>
648
+ <!-- ===Time=========================================== -->
649
+ <xsd:group name="TemporalGroup">
650
+ <xsd:annotation>
651
+ <xsd:documentation>Elements affecting temporal scope of SITUATION.</xsd:documentation>
652
+ </xsd:annotation>
653
+ <xsd:sequence>
654
+ <xsd:element name="ValidityPeriod" type="HalfOpenTimestampOutputRangeStructure" maxOccurs="unbounded">
655
+ <xsd:annotation>
656
+ <xsd:documentation>Overall inclusive Period of applicability of SITUATION.</xsd:documentation>
657
+ </xsd:annotation>
658
+ </xsd:element>
659
+ <xsd:element name="Repetitions" minOccurs="0">
660
+ <xsd:annotation>
661
+ <xsd:documentation>situation applies only on the repeated day types within the overall validity period(s). For example Sunday.</xsd:documentation>
662
+ </xsd:annotation>
663
+ <xsd:complexType>
664
+ <xsd:sequence>
665
+ <xsd:element ref="DayType" maxOccurs="unbounded"/>
666
+ </xsd:sequence>
667
+ </xsd:complexType>
668
+ </xsd:element>
669
+ <xsd:element name="PublicationWindow" type="HalfOpenTimestampOutputRangeStructure" minOccurs="0" maxOccurs="unbounded">
670
+ <xsd:annotation>
671
+ <xsd:documentation>Publication Window for SITUATION if different from validity period.</xsd:documentation>
672
+ </xsd:annotation>
673
+ </xsd:element>
674
+ </xsd:sequence>
675
+ </xsd:group>
676
+ <!-- ===Classification=========================================== -->
677
+ <xsd:group name="ClassifierGroup">
678
+ <xsd:annotation>
679
+ <xsd:documentation>Structured Classification Elements using TPEG Pts038 AlertCause.</xsd:documentation>
680
+ </xsd:annotation>
681
+ <xsd:sequence>
682
+ <xsd:group ref="ReasonGroup"/>
683
+ <xsd:element ref="Severity" minOccurs="0"/>
684
+ <xsd:element name="Priority" type="xsd:nonNegativeInteger" minOccurs="0">
685
+ <xsd:annotation>
686
+ <xsd:documentation>Arbitrary rating of priority 1-High.</xsd:documentation>
687
+ </xsd:annotation>
688
+ </xsd:element>
689
+ <xsd:element name="Sensitivity" type="SensitivityEnumeration" minOccurs="0">
690
+ <xsd:annotation>
691
+ <xsd:documentation>Confidentiality of SITUATION.</xsd:documentation>
692
+ </xsd:annotation>
693
+ </xsd:element>
694
+ <xsd:element name="Audience" type="AudienceEnumeration" default="public" minOccurs="0">
695
+ <xsd:annotation>
696
+ <xsd:documentation>Intended audience of SITUATION.</xsd:documentation>
697
+ </xsd:annotation>
698
+ </xsd:element>
699
+ <xsd:element name="ScopeType" minOccurs="0">
700
+ <xsd:annotation>
701
+ <xsd:documentation>Nature of scope, e.g. general, network.</xsd:documentation>
702
+ </xsd:annotation>
703
+ <xsd:simpleType>
704
+ <xsd:restriction base="ScopeTypeEnumeration"/>
705
+ </xsd:simpleType>
706
+ </xsd:element>
707
+ <xsd:element ref="ReportType" minOccurs="0"/>
708
+ <xsd:element name="Planned" type="xsd:boolean" default="false" minOccurs="0">
709
+ <xsd:annotation>
710
+ <xsd:documentation>Whether the SITUATION was planned (eg engineering works) or unplanned (eg service alteration). Default is 'false', i.e. unplanned.</xsd:documentation>
711
+ </xsd:annotation>
712
+ </xsd:element>
713
+ <xsd:element name="Keywords" type="xsd:NMTOKENS" minOccurs="0">
714
+ <xsd:annotation>
715
+ <xsd:documentation>Arbitrary application specific classifiers.</xsd:documentation>
716
+ </xsd:annotation>
717
+ </xsd:element>
718
+ <xsd:element name="SecondaryReasons" minOccurs="0">
719
+ <xsd:annotation>
720
+ <xsd:documentation>Additional reasons</xsd:documentation>
721
+ </xsd:annotation>
722
+ <xsd:complexType>
723
+ <xsd:sequence maxOccurs="unbounded">
724
+ <xsd:element name="Reason">
725
+ <xsd:annotation>
726
+ <xsd:documentation>Reason</xsd:documentation>
727
+ </xsd:annotation>
728
+ <xsd:complexType>
729
+ <xsd:sequence>
730
+ <xsd:group ref="ReasonGroup"/>
731
+ </xsd:sequence>
732
+ </xsd:complexType>
733
+ </xsd:element>
734
+ </xsd:sequence>
735
+ </xsd:complexType>
736
+ </xsd:element>
737
+ </xsd:sequence>
738
+ </xsd:group>
739
+ <xsd:group name="ReasonGroup">
740
+ <xsd:annotation>
741
+ <xsd:documentation>Structured Reason elements. The TpegReason and/or PublicEventReason enumerated values can be used to generate standardized messages describing the SITUATION. If no enumerated values are given, ReasonName is used instead.
742
+ Note: this means that ReasonName is NOT a complete message, but only a (few) word(s) to be included in the message!</xsd:documentation>
743
+ </xsd:annotation>
744
+ <xsd:sequence>
745
+ <xsd:group ref="TpegReasonGroup">
746
+ <xsd:annotation>
747
+ <xsd:documentation>Structured classification of nature of SITUATION, from which a standardized message can be generated.</xsd:documentation>
748
+ </xsd:annotation>
749
+ </xsd:group>
750
+ <xsd:group ref="TpegSubReasonGroup" minOccurs="0">
751
+ <xsd:annotation>
752
+ <xsd:documentation>DEPRECATED (SIRI 2.1) - use only TpegReasonGroup and PublicEventReason.</xsd:documentation>
753
+ </xsd:annotation>
754
+ </xsd:group>
755
+ <xsd:element name="PublicEventReason" type="D2LogicalModel:PublicEventTypeEnum" minOccurs="0">
756
+ <xsd:annotation>
757
+ <xsd:documentation>Structured classification of Public Event, from which a standardized message can be generated.</xsd:documentation>
758
+ </xsd:annotation>
759
+ </xsd:element>
760
+ <xsd:element name="ReasonName" type="NaturalLanguageStringStructure" minOccurs="0" maxOccurs="unbounded">
761
+ <xsd:annotation>
762
+ <xsd:documentation>Textual classification of nature of SITUATION, from which a standardized message can be generated. Not normally needed, except when TpegReason and PublicEventReason are absent. (Unbounded since SIRI 2.0)</xsd:documentation>
763
+ </xsd:annotation>
764
+ </xsd:element>
765
+ </xsd:sequence>
766
+ </xsd:group>
767
+ <xsd:simpleType name="SensitivityEnumeration">
768
+ <xsd:annotation>
769
+ <xsd:documentation>Values for Sensitivity.</xsd:documentation>
770
+ </xsd:annotation>
771
+ <xsd:restriction base="xsd:NMTOKEN">
772
+ <xsd:enumeration value="veryHigh"/>
773
+ <xsd:enumeration value="high"/>
774
+ <xsd:enumeration value="medium"/>
775
+ <xsd:enumeration value="low"/>
776
+ <xsd:enumeration value="veryLow"/>
777
+ </xsd:restriction>
778
+ </xsd:simpleType>
779
+ <xsd:simpleType name="AudienceEnumeration">
780
+ <xsd:annotation>
781
+ <xsd:documentation>Values for Audience.</xsd:documentation>
782
+ </xsd:annotation>
783
+ <xsd:restriction base="xsd:NMTOKEN">
784
+ <xsd:enumeration value="public"/>
785
+ <xsd:enumeration value="emergencyServices"/>
786
+ <xsd:enumeration value="staff"/>
787
+ <xsd:enumeration value="stationStaff"/>
788
+ <xsd:enumeration value="management"/>
789
+ <xsd:enumeration value="authorities"/>
790
+ <xsd:enumeration value="infoServices"/>
791
+ <xsd:enumeration value="transportOperators"/>
792
+ </xsd:restriction>
793
+ </xsd:simpleType>
794
+ <xsd:simpleType name="NatureEnumeration">
795
+ <xsd:annotation>
796
+ <xsd:documentation>Type for Quality of data indication. </xsd:documentation>
797
+ </xsd:annotation>
798
+ <xsd:restriction base="xsd:string">
799
+ <xsd:enumeration value="plannedOnly"/>
800
+ <xsd:enumeration value="unplannedOnly"/>
801
+ <xsd:enumeration value="both"/>
802
+ </xsd:restriction>
803
+ </xsd:simpleType>
804
+ <xsd:simpleType name="ScopeTypeEnumeration">
805
+ <xsd:annotation>
806
+ <xsd:documentation>Values for ScopeType - TPEG Pts36, AlertForType with additional values</xsd:documentation>
807
+ </xsd:annotation>
808
+ <xsd:restriction base="xsd:NMTOKEN">
809
+ <xsd:enumeration value="unknown">
810
+ <xsd:annotation>
811
+ <xsd:documentation>TPEG Pts36_0, unknown</xsd:documentation>
812
+ </xsd:annotation>
813
+ </xsd:enumeration>
814
+ <xsd:enumeration value="stopPlace">
815
+ <xsd:annotation>
816
+ <xsd:documentation>TPEG Pts36_1, STOP PLACE</xsd:documentation>
817
+ </xsd:annotation>
818
+ </xsd:enumeration>
819
+ <xsd:enumeration value="line">
820
+ <xsd:annotation>
821
+ <xsd:documentation>TPEG Pts36_2, line</xsd:documentation>
822
+ </xsd:annotation>
823
+ </xsd:enumeration>
824
+ <xsd:enumeration value="route">
825
+ <xsd:annotation>
826
+ <xsd:documentation>TPEG Pts36_3, route</xsd:documentation>
827
+ </xsd:annotation>
828
+ </xsd:enumeration>
829
+ <xsd:enumeration value="publicTransportService">
830
+ <xsd:annotation>
831
+ <xsd:documentation>TPEG Pts36_4, individual PT service</xsd:documentation>
832
+ </xsd:annotation>
833
+ </xsd:enumeration>
834
+ <xsd:enumeration value="operator">
835
+ <xsd:annotation>
836
+ <xsd:documentation>TPEG Pts36_5, operator</xsd:documentation>
837
+ </xsd:annotation>
838
+ </xsd:enumeration>
839
+ <xsd:enumeration value="city">
840
+ <xsd:annotation>
841
+ <xsd:documentation>TPEG Pts36_6, city</xsd:documentation>
842
+ </xsd:annotation>
843
+ </xsd:enumeration>
844
+ <xsd:enumeration value="area">
845
+ <xsd:annotation>
846
+ <xsd:documentation>TPEG Pts36_7, area</xsd:documentation>
847
+ </xsd:annotation>
848
+ </xsd:enumeration>
849
+ <xsd:enumeration value="stopPoint">
850
+ <xsd:annotation>
851
+ <xsd:documentation>TPEG Pts36_8, stop point</xsd:documentation>
852
+ </xsd:annotation>
853
+ </xsd:enumeration>
854
+ <xsd:enumeration value="stopPlaceComponent">
855
+ <xsd:annotation>
856
+ <xsd:documentation>STOP PLACE component</xsd:documentation>
857
+ </xsd:annotation>
858
+ </xsd:enumeration>
859
+ <xsd:enumeration value="place">
860
+ <xsd:annotation>
861
+ <xsd:documentation>place</xsd:documentation>
862
+ </xsd:annotation>
863
+ </xsd:enumeration>
864
+ <xsd:enumeration value="network">
865
+ <xsd:annotation>
866
+ <xsd:documentation>network</xsd:documentation>
867
+ </xsd:annotation>
868
+ </xsd:enumeration>
869
+ <xsd:enumeration value="vehicleJourney">
870
+ <xsd:annotation>
871
+ <xsd:documentation>vehicle journey</xsd:documentation>
872
+ </xsd:annotation>
873
+ </xsd:enumeration>
874
+ <xsd:enumeration value="datedVehicleJourney">
875
+ <xsd:annotation>
876
+ <xsd:documentation>dated vehicle journey</xsd:documentation>
877
+ </xsd:annotation>
878
+ </xsd:enumeration>
879
+ <xsd:enumeration value="connectionLink">
880
+ <xsd:annotation>
881
+ <xsd:documentation>connection link</xsd:documentation>
882
+ </xsd:annotation>
883
+ </xsd:enumeration>
884
+ <xsd:enumeration value="interchange">
885
+ <xsd:annotation>
886
+ <xsd:documentation>interchange</xsd:documentation>
887
+ </xsd:annotation>
888
+ </xsd:enumeration>
889
+ <xsd:enumeration value="allPT">
890
+ <xsd:annotation>
891
+ <xsd:documentation>TPEG Pts36_0, unknown</xsd:documentation>
892
+ </xsd:annotation>
893
+ </xsd:enumeration>
894
+ <xsd:enumeration value="general">
895
+ <xsd:annotation>
896
+ <xsd:documentation>general</xsd:documentation>
897
+ </xsd:annotation>
898
+ </xsd:enumeration>
899
+ <xsd:enumeration value="road">
900
+ <xsd:annotation>
901
+ <xsd:documentation>road</xsd:documentation>
902
+ </xsd:annotation>
903
+ </xsd:enumeration>
904
+ <xsd:enumeration value="undefined">
905
+ <xsd:annotation>
906
+ <xsd:documentation>TPEG Pts36_255, undefined</xsd:documentation>
907
+ </xsd:annotation>
908
+ </xsd:enumeration>
909
+ </xsd:restriction>
910
+ </xsd:simpleType>
911
+ <!-- ====Affects Descriptions======================================= -->
912
+ <xsd:complexType name="AffectsScopeStructure">
913
+ <xsd:annotation>
914
+ <xsd:documentation>Type for Location model for scope of SITUATION or effect.</xsd:documentation>
915
+ </xsd:annotation>
916
+ <xsd:sequence>
917
+ <xsd:element name="AreaOfInterest" type="D2LogicalModel:AreaOfInterestEnum" minOccurs="0">
918
+ <xsd:annotation>
919
+ <xsd:documentation>Affected overall Geographic scope.</xsd:documentation>
920
+ </xsd:annotation>
921
+ </xsd:element>
922
+ <xsd:element name="Operators" minOccurs="0">
923
+ <xsd:annotation>
924
+ <xsd:documentation>Affected OPERATORs, If absent, taken from context. If present, any OPERATORs stated completely replace those from context.</xsd:documentation>
925
+ </xsd:annotation>
926
+ <xsd:complexType>
927
+ <xsd:choice>
928
+ <xsd:element name="AllOperators" type="EmptyType">
929
+ <xsd:annotation>
930
+ <xsd:documentation>All OPERATORs.</xsd:documentation>
931
+ </xsd:annotation>
932
+ </xsd:element>
933
+ <xsd:element name="AffectedOperator" type="AffectedOperatorStructure" maxOccurs="unbounded">
934
+ <xsd:annotation>
935
+ <xsd:documentation>Operators of services affected by SITUATION.</xsd:documentation>
936
+ </xsd:annotation>
937
+ </xsd:element>
938
+ </xsd:choice>
939
+ </xsd:complexType>
940
+ </xsd:element>
941
+ <xsd:element name="Networks" minOccurs="0">
942
+ <xsd:annotation>
943
+ <xsd:documentation>Networks affected by SITUATION.</xsd:documentation>
944
+ </xsd:annotation>
945
+ <xsd:complexType>
946
+ <xsd:sequence>
947
+ <xsd:element name="AffectedNetwork" maxOccurs="unbounded">
948
+ <xsd:annotation>
949
+ <xsd:documentation>Networks and Route(s) affected by SITUATION.</xsd:documentation>
950
+ </xsd:annotation>
951
+ <xsd:complexType>
952
+ <xsd:complexContent>
953
+ <xsd:extension base="AffectedNetworkStructure"/>
954
+ </xsd:complexContent>
955
+ </xsd:complexType>
956
+ </xsd:element>
957
+ </xsd:sequence>
958
+ </xsd:complexType>
959
+ </xsd:element>
960
+ <xsd:element name="StopPoints" minOccurs="0">
961
+ <xsd:annotation>
962
+ <xsd:documentation>STOP POINTs affected by SITUATION.</xsd:documentation>
963
+ </xsd:annotation>
964
+ <xsd:complexType>
965
+ <xsd:sequence>
966
+ <xsd:element name="AffectedStopPoint" type="AffectedStopPointStructure" maxOccurs="unbounded">
967
+ <xsd:annotation>
968
+ <xsd:documentation>STOP POINT affected by SITUATION.</xsd:documentation>
969
+ </xsd:annotation>
970
+ </xsd:element>
971
+ </xsd:sequence>
972
+ </xsd:complexType>
973
+ </xsd:element>
974
+ <xsd:element name="StopPlaces" minOccurs="0">
975
+ <xsd:annotation>
976
+ <xsd:documentation>Places other than STOP POINTs affected by SITUATION.</xsd:documentation>
977
+ </xsd:annotation>
978
+ <xsd:complexType>
979
+ <xsd:sequence>
980
+ <xsd:element name="AffectedStopPlace" type="AffectedStopPlaceStructure" maxOccurs="unbounded">
981
+ <xsd:annotation>
982
+ <xsd:documentation>STOP PLACE affected by SITUATION.</xsd:documentation>
983
+ </xsd:annotation>
984
+ </xsd:element>
985
+ </xsd:sequence>
986
+ </xsd:complexType>
987
+ </xsd:element>
988
+ <xsd:element name="Places" minOccurs="0">
989
+ <xsd:annotation>
990
+ <xsd:documentation>Places other than STOP POINTs affected by SITUATION.</xsd:documentation>
991
+ </xsd:annotation>
992
+ <xsd:complexType>
993
+ <xsd:sequence>
994
+ <xsd:element name="AffectedPlace" type="AffectedPlaceStructure" maxOccurs="unbounded">
995
+ <xsd:annotation>
996
+ <xsd:documentation>Place affected by SITUATION.</xsd:documentation>
997
+ </xsd:annotation>
998
+ </xsd:element>
999
+ </xsd:sequence>
1000
+ </xsd:complexType>
1001
+ </xsd:element>
1002
+ <xsd:element name="VehicleJourneys" minOccurs="0">
1003
+ <xsd:annotation>
1004
+ <xsd:documentation>Specific journeys affected by SITUATION.</xsd:documentation>
1005
+ </xsd:annotation>
1006
+ <xsd:complexType>
1007
+ <xsd:sequence>
1008
+ <xsd:element name="AffectedVehicleJourney" type="AffectedVehicleJourneyStructure" maxOccurs="unbounded">
1009
+ <xsd:annotation>
1010
+ <xsd:documentation>Journeys affected by the SITUATION.</xsd:documentation>
1011
+ </xsd:annotation>
1012
+ </xsd:element>
1013
+ </xsd:sequence>
1014
+ </xsd:complexType>
1015
+ </xsd:element>
1016
+ <xsd:element name="Vehicles" minOccurs="0">
1017
+ <xsd:annotation>
1018
+ <xsd:documentation>Specific vehicles affected by SITUATION. (+SIRI v2.0)</xsd:documentation>
1019
+ </xsd:annotation>
1020
+ <xsd:complexType>
1021
+ <xsd:sequence>
1022
+ <xsd:element name="AffectedVehicle" type="AffectedVehicleStructure" maxOccurs="unbounded">
1023
+ <xsd:annotation>
1024
+ <xsd:documentation>Vehicles affected by the SITUATION. (+SIRi v2.0)</xsd:documentation>
1025
+ </xsd:annotation>
1026
+ </xsd:element>
1027
+ </xsd:sequence>
1028
+ </xsd:complexType>
1029
+ </xsd:element>
1030
+ <xsd:element name="Roads" type="AffectedRoadsStructure" minOccurs="0">
1031
+ <xsd:annotation>
1032
+ <xsd:documentation>Roads affected by.</xsd:documentation>
1033
+ </xsd:annotation>
1034
+ </xsd:element>
1035
+ <xsd:element ref="Extensions" minOccurs="0"/>
1036
+ </xsd:sequence>
1037
+ </xsd:complexType>
1038
+ <xsd:complexType name="AffectedRoadsStructure">
1039
+ <xsd:annotation>
1040
+ <xsd:documentation>Type for Location model for scope of SITUATION or effect.</xsd:documentation>
1041
+ </xsd:annotation>
1042
+ <xsd:sequence>
1043
+ <xsd:element name="Datex2Locations" type="D2LogicalModel:GroupOfLocations" minOccurs="0">
1044
+ <xsd:annotation>
1045
+ <xsd:documentation>Refereences to road network locations affected by the SITUATION.</xsd:documentation>
1046
+ </xsd:annotation>
1047
+ </xsd:element>
1048
+ <xsd:element name="AffectedRoad" type="AffectedRoadStructure" minOccurs="0" maxOccurs="unbounded">
1049
+ <xsd:annotation>
1050
+ <xsd:documentation>Description of affected road.</xsd:documentation>
1051
+ </xsd:annotation>
1052
+ </xsd:element>
1053
+ </xsd:sequence>
1054
+ </xsd:complexType>
1055
+ <!-- ====Text Descriptions======================================= -->
1056
+ <xsd:complexType name="ImageStructure">
1057
+ <xsd:annotation>
1058
+ <xsd:documentation>Type for image.</xsd:documentation>
1059
+ </xsd:annotation>
1060
+ <xsd:sequence>
1061
+ <xsd:choice>
1062
+ <xsd:element name="ImageRef" type="xsd:anyURI">
1063
+ <xsd:annotation>
1064
+ <xsd:documentation>Reference to an image.</xsd:documentation>
1065
+ </xsd:annotation>
1066
+ </xsd:element>
1067
+ <xsd:element name="ImageBinary" type="xsd:base64Binary">
1068
+ <xsd:annotation>
1069
+ <xsd:documentation>Embedded image.</xsd:documentation>
1070
+ </xsd:annotation>
1071
+ </xsd:element>
1072
+ </xsd:choice>
1073
+ <xsd:element name="ImageContent" type="ImageContentEnumeration" minOccurs="0">
1074
+ <xsd:annotation>
1075
+ <xsd:documentation>Categorisation of image content.</xsd:documentation>
1076
+ </xsd:annotation>
1077
+ </xsd:element>
1078
+ </xsd:sequence>
1079
+ </xsd:complexType>
1080
+ <xsd:group name="DescriptionGroup">
1081
+ <xsd:annotation>
1082
+ <xsd:documentation>Text description of SITUATION. Some or all of this may have been generated from the other structured content elements. Where text has been overriden this is indicated.</xsd:documentation>
1083
+ </xsd:annotation>
1084
+ <xsd:sequence>
1085
+ <xsd:element name="Language" type="xsd:language" default="en" minOccurs="0">
1086
+ <xsd:annotation>
1087
+ <xsd:documentation>Default language.</xsd:documentation>
1088
+ </xsd:annotation>
1089
+ </xsd:element>
1090
+ <xsd:element name="Summary" type="DefaultedTextStructure" minOccurs="0" maxOccurs="unbounded">
1091
+ <xsd:annotation>
1092
+ <xsd:documentation>Summary of SITUATION. If absent should be generated from structure elements / and or by condensing Description. (Unbounded since SIRI 2.0)</xsd:documentation>
1093
+ </xsd:annotation>
1094
+ </xsd:element>
1095
+ <xsd:element name="Description" type="DefaultedTextStructure" minOccurs="0" maxOccurs="unbounded">
1096
+ <xsd:annotation>
1097
+ <xsd:documentation>Description of SITUATION. Should not repeat any strap line included in Summary. (Unbounded since SIRI 2.0)</xsd:documentation>
1098
+ </xsd:annotation>
1099
+ </xsd:element>
1100
+ <xsd:element name="Detail" type="DefaultedTextStructure" minOccurs="0" maxOccurs="unbounded">
1101
+ <xsd:annotation>
1102
+ <xsd:documentation>Additional descriptive details about the SITUATION (Unbounded since SIRI 2.0).</xsd:documentation>
1103
+ </xsd:annotation>
1104
+ </xsd:element>
1105
+ <xsd:element name="Advice" type="DefaultedTextStructure" minOccurs="0" maxOccurs="unbounded">
1106
+ <xsd:annotation>
1107
+ <xsd:documentation>Further advice to passengers. (Unbounded since SIRI 2.0)</xsd:documentation>
1108
+ </xsd:annotation>
1109
+ </xsd:element>
1110
+ <xsd:element name="Internal" type="DefaultedTextStructure" minOccurs="0">
1111
+ <xsd:annotation>
1112
+ <xsd:documentation>For internal information only, not passenger relevant</xsd:documentation>
1113
+ </xsd:annotation>
1114
+ </xsd:element>
1115
+ <xsd:element name="Images" minOccurs="0">
1116
+ <xsd:annotation>
1117
+ <xsd:documentation>Any images associated with SITUATION.</xsd:documentation>
1118
+ </xsd:annotation>
1119
+ <xsd:complexType>
1120
+ <xsd:sequence>
1121
+ <xsd:element name="Image" maxOccurs="unbounded">
1122
+ <xsd:annotation>
1123
+ <xsd:documentation>Image description.</xsd:documentation>
1124
+ </xsd:annotation>
1125
+ <xsd:complexType>
1126
+ <xsd:complexContent>
1127
+ <xsd:extension base="ImageStructure"/>
1128
+ </xsd:complexContent>
1129
+ </xsd:complexType>
1130
+ </xsd:element>
1131
+ </xsd:sequence>
1132
+ </xsd:complexType>
1133
+ </xsd:element>
1134
+ <xsd:element name="InfoLinks" minOccurs="0">
1135
+ <xsd:annotation>
1136
+ <xsd:documentation>Hyperlinks to other resources associated with SITUATION.</xsd:documentation>
1137
+ </xsd:annotation>
1138
+ <xsd:complexType>
1139
+ <xsd:sequence>
1140
+ <xsd:element name="InfoLink" type="InfoLinkStructure" maxOccurs="unbounded">
1141
+ <xsd:annotation>
1142
+ <xsd:documentation>Hyperlink description.</xsd:documentation>
1143
+ </xsd:annotation>
1144
+ </xsd:element>
1145
+ </xsd:sequence>
1146
+ </xsd:complexType>
1147
+ </xsd:element>
1148
+ </xsd:sequence>
1149
+ </xsd:group>
1150
+ <xsd:simpleType name="ImageContentEnumeration">
1151
+ <xsd:annotation>
1152
+ <xsd:documentation>Values for image content.</xsd:documentation>
1153
+ </xsd:annotation>
1154
+ <xsd:restriction base="xsd:NMTOKEN">
1155
+ <xsd:enumeration value="map"/>
1156
+ <xsd:enumeration value="graphic"/>
1157
+ <xsd:enumeration value="logo"/>
1158
+ </xsd:restriction>
1159
+ </xsd:simpleType>
1160
+ <xsd:complexType name="DefaultedTextStructure">
1161
+ <xsd:annotation>
1162
+ <xsd:documentation>Type for a text that may be overridden.</xsd:documentation>
1163
+ </xsd:annotation>
1164
+ <xsd:simpleContent>
1165
+ <xsd:extension base="NaturalLanguageStringStructure">
1166
+ <xsd:attribute name="overridden" type="xsd:boolean" use="optional" default="true">
1167
+ <xsd:annotation>
1168
+ <xsd:documentation>Whether the text value has been overridden from the generated default. Default is 'true'.</xsd:documentation>
1169
+ </xsd:annotation>
1170
+ </xsd:attribute>
1171
+ </xsd:extension>
1172
+ </xsd:simpleContent>
1173
+ </xsd:complexType>
1174
+ <xsd:simpleType name="LinkContentEnumeration">
1175
+ <xsd:annotation>
1176
+ <xsd:documentation>Values for image content.</xsd:documentation>
1177
+ </xsd:annotation>
1178
+ <xsd:restriction base="xsd:NMTOKEN">
1179
+ <xsd:enumeration value="timetable"/>
1180
+ <xsd:enumeration value="relatedSite"/>
1181
+ <xsd:enumeration value="details"/>
1182
+ <xsd:enumeration value="advice"/>
1183
+ <xsd:enumeration value="other"/>
1184
+ </xsd:restriction>
1185
+ </xsd:simpleType>
1186
+ <xsd:complexType name="InfoLinkStructure">
1187
+ <xsd:annotation>
1188
+ <xsd:documentation>Type for a general hyperlink.</xsd:documentation>
1189
+ </xsd:annotation>
1190
+ <xsd:sequence>
1191
+ <xsd:element name="Uri" type="xsd:anyURI">
1192
+ <xsd:annotation>
1193
+ <xsd:documentation>URI for link.</xsd:documentation>
1194
+ </xsd:annotation>
1195
+ </xsd:element>
1196
+ <xsd:element name="Label" type="NaturalLanguageStringStructure" minOccurs="0" maxOccurs="unbounded">
1197
+ <xsd:annotation>
1198
+ <xsd:documentation>Label for Link. (Unbounded since SIRI 2.0)</xsd:documentation>
1199
+ </xsd:annotation>
1200
+ </xsd:element>
1201
+ <xsd:element name="Image" type="ImageStructure" minOccurs="0">
1202
+ <xsd:annotation>
1203
+ <xsd:documentation>Image to use when presenting hyperlink.</xsd:documentation>
1204
+ </xsd:annotation>
1205
+ </xsd:element>
1206
+ <xsd:element name="LinkContent" type="LinkContentEnumeration" minOccurs="0">
1207
+ <xsd:annotation>
1208
+ <xsd:documentation>Categorisation of link content.</xsd:documentation>
1209
+ </xsd:annotation>
1210
+ </xsd:element>
1211
+ </xsd:sequence>
1212
+ </xsd:complexType>
1213
+ <!-- ====Effects======================================= -->
1214
+ <xsd:complexType name="PtConsequencesStructure">
1215
+ <xsd:annotation>
1216
+ <xsd:documentation>Type for list of effects.</xsd:documentation>
1217
+ </xsd:annotation>
1218
+ <xsd:sequence>
1219
+ <xsd:element name="Consequence" type="PtConsequenceStructure" maxOccurs="unbounded">
1220
+ <xsd:annotation>
1221
+ <xsd:documentation>Nature of the effect to disrupt (or restore) service, and further details.</xsd:documentation>
1222
+ </xsd:annotation>
1223
+ </xsd:element>
1224
+ </xsd:sequence>
1225
+ </xsd:complexType>
1226
+ <xsd:complexType name="PtConsequenceStructure">
1227
+ <xsd:annotation>
1228
+ <xsd:documentation>Type for disruption.</xsd:documentation>
1229
+ </xsd:annotation>
1230
+ <xsd:sequence>
1231
+ <xsd:element name="Period" type="HalfOpenTimestampOutputRangeStructure" minOccurs="0" maxOccurs="unbounded">
1232
+ <xsd:annotation>
1233
+ <xsd:documentation>Period of effect of disruption, if different from that of SITUATION.</xsd:documentation>
1234
+ </xsd:annotation>
1235
+ </xsd:element>
1236
+ <xsd:group ref="ConditionGroup">
1237
+ <xsd:annotation>
1238
+ <xsd:documentation>Condition(s) of effect of disruptions.</xsd:documentation>
1239
+ </xsd:annotation>
1240
+ </xsd:group>
1241
+ <xsd:element name="Severity" type="SeverityEnumeration" minOccurs="0">
1242
+ <xsd:annotation>
1243
+ <xsd:documentation>Severity of disruption if different from that of SITUATION. TPEG pti26</xsd:documentation>
1244
+ </xsd:annotation>
1245
+ </xsd:element>
1246
+ <xsd:element name="Affects" type="AffectsScopeStructure" minOccurs="0">
1247
+ <xsd:annotation>
1248
+ <xsd:documentation>Parts of transport network affected by disruption if different from that of SITUATION.</xsd:documentation>
1249
+ </xsd:annotation>
1250
+ </xsd:element>
1251
+ <xsd:element name="Suitabilities" minOccurs="0">
1252
+ <xsd:annotation>
1253
+ <xsd:documentation>Effect on different passenger needs.</xsd:documentation>
1254
+ </xsd:annotation>
1255
+ <xsd:complexType>
1256
+ <xsd:sequence>
1257
+ <xsd:element name="Suitability" type="acsb:SuitabilityStructure" maxOccurs="unbounded">
1258
+ <xsd:annotation>
1259
+ <xsd:documentation>Effect on a passenger need.</xsd:documentation>
1260
+ </xsd:annotation>
1261
+ </xsd:element>
1262
+ </xsd:sequence>
1263
+ </xsd:complexType>
1264
+ </xsd:element>
1265
+ <xsd:element name="Advice" type="PtAdviceStructure" minOccurs="0">
1266
+ <xsd:annotation>
1267
+ <xsd:documentation>Advice to passengers.</xsd:documentation>
1268
+ </xsd:annotation>
1269
+ </xsd:element>
1270
+ <xsd:element name="Blocking" type="BlockingStructure" minOccurs="0">
1271
+ <xsd:annotation>
1272
+ <xsd:documentation>How Disruption should be handled in Info systems.</xsd:documentation>
1273
+ </xsd:annotation>
1274
+ </xsd:element>
1275
+ <xsd:element name="Boarding" type="BoardingStructure" minOccurs="0">
1276
+ <xsd:annotation>
1277
+ <xsd:documentation>Change to normal boarding activity allowed at stop.</xsd:documentation>
1278
+ </xsd:annotation>
1279
+ </xsd:element>
1280
+ <xsd:element name="Delays" type="DelaysStructure" minOccurs="0"/>
1281
+ <xsd:element name="Casualties" type="CasualtiesStructure" minOccurs="0">
1282
+ <xsd:annotation>
1283
+ <xsd:documentation>Information on casualties.</xsd:documentation>
1284
+ </xsd:annotation>
1285
+ </xsd:element>
1286
+ <xsd:element name="Easements" type="EasementsStructure" minOccurs="0" maxOccurs="unbounded">
1287
+ <xsd:annotation>
1288
+ <xsd:documentation>Description of fare exceptions allowed because of disruption.</xsd:documentation>
1289
+ </xsd:annotation>
1290
+ </xsd:element>
1291
+ <xsd:element ref="Extensions" minOccurs="0"/>
1292
+ </xsd:sequence>
1293
+ </xsd:complexType>
1294
+ <xsd:group name="ConditionGroup">
1295
+ <xsd:annotation>
1296
+ <xsd:documentation>Structured elements of a SITUATION condition. The Condition enumerated value(s) can be used to generate standardized messages describing the SITUATION. If no enumerated values are given, ConditionName is used instead.
1297
+ Note: this means that ConditionName is NOT a complete message, but only a (few) word(s) to be included in the message!</xsd:documentation>
1298
+ </xsd:annotation>
1299
+ <xsd:sequence>
1300
+ <xsd:element ref="Condition" minOccurs="0" maxOccurs="unbounded">
1301
+ <xsd:annotation>
1302
+ <xsd:documentation>Structured classification(s) of effect on service, from which a standardized message can be generated.</xsd:documentation>
1303
+ </xsd:annotation>
1304
+ </xsd:element>
1305
+ <xsd:element name="ConditionName" type="NaturalLanguageStringStructure" minOccurs="0" maxOccurs="unbounded">
1306
+ <xsd:annotation>
1307
+ <xsd:documentation>Textual classification of effect on service, from which a standardized message can be generated. Not normally needed, except when Condition is absent.</xsd:documentation>
1308
+ </xsd:annotation>
1309
+ </xsd:element>
1310
+ </xsd:sequence>
1311
+ </xsd:group>
1312
+ <xsd:complexType name="BoardingStructure">
1313
+ <xsd:annotation>
1314
+ <xsd:documentation>Type for boarding restrictions.</xsd:documentation>
1315
+ </xsd:annotation>
1316
+ <xsd:sequence>
1317
+ <xsd:element name="ArrivalBoardingActivity" type="ArrivalBoardingActivityEnumeration" default="alighting" minOccurs="0">
1318
+ <xsd:annotation>
1319
+ <xsd:documentation>Type of alighting allowed at stop. Default is 'Alighting'.</xsd:documentation>
1320
+ </xsd:annotation>
1321
+ </xsd:element>
1322
+ <xsd:element name="DepartureBoardingActivity" type="DepartureBoardingActivityEnumeration" default="boarding" minOccurs="0">
1323
+ <xsd:annotation>
1324
+ <xsd:documentation>Type of boarding allowed at stop. Default is 'Boarding'.</xsd:documentation>
1325
+ </xsd:annotation>
1326
+ </xsd:element>
1327
+ </xsd:sequence>
1328
+ </xsd:complexType>
1329
+ <xsd:complexType name="PtAdviceStructure">
1330
+ <xsd:annotation>
1331
+ <xsd:documentation>Type for (structured) advice. The AdviceType enumerated value can be used to generate standardized messages describing the SITUATION. If no enumerated value is given, AdviceName is used instead.
1332
+ Note: this means that AdviceName is NOT a complete message, but only a (few) word(s) to be included in the message!
1333
+ Alternatively, AdviceRef can be used to reference a (complete) standardised advisory message.
1334
+ </xsd:documentation>
1335
+ </xsd:annotation>
1336
+ <xsd:sequence>
1337
+ <xsd:element name="AdviceRef" type="AdviceRefStructure" minOccurs="0">
1338
+ <xsd:annotation>
1339
+ <xsd:documentation>Reference to a standard advisory NOTICE to be given to passengers if a particular condition arises.</xsd:documentation>
1340
+ </xsd:annotation>
1341
+ </xsd:element>
1342
+ <xsd:element name="AdviceType" type="AdviceTypeEnumeration" minOccurs="0">
1343
+ <xsd:annotation>
1344
+ <xsd:documentation>Structured classification of advice for passengers in the given SITUATION, from which a standardized message can be generated.</xsd:documentation>
1345
+ </xsd:annotation>
1346
+ </xsd:element>
1347
+ <xsd:element name="AdviceName" type="NaturalLanguageStringStructure" minOccurs="0" maxOccurs="unbounded">
1348
+ <xsd:annotation>
1349
+ <xsd:documentation>Textual classification of advice, from which a standardized message can be generated. Not normally needed, except when AdviceType is absent.</xsd:documentation>
1350
+ </xsd:annotation>
1351
+ </xsd:element>
1352
+ <xsd:element name="Details" type="NaturalLanguageStringStructure" minOccurs="0" maxOccurs="unbounded">
1353
+ <xsd:annotation>
1354
+ <xsd:documentation>Further textual advice to passengers. (Unbounded since SIRI 2.0)</xsd:documentation>
1355
+ </xsd:annotation>
1356
+ </xsd:element>
1357
+ </xsd:sequence>
1358
+ </xsd:complexType>
1359
+ <xsd:simpleType name="AdviceTypeEnumeration">
1360
+ <xsd:annotation>
1361
+ <xsd:documentation>Values for TPEG Pts039 - AdviceType, with some additional values</xsd:documentation>
1362
+ </xsd:annotation>
1363
+ <xsd:restriction base="xsd:NMTOKEN">
1364
+ <xsd:enumeration value="unknown">
1365
+ <xsd:annotation>
1366
+ <xsd:documentation>TPEG Pts39_0, unknown</xsd:documentation>
1367
+ </xsd:annotation>
1368
+ </xsd:enumeration>
1369
+ <xsd:enumeration value="useReplacementBus">
1370
+ <xsd:annotation>
1371
+ <xsd:documentation>TPEG Pts39_1, use replacement bus</xsd:documentation>
1372
+ </xsd:annotation>
1373
+ </xsd:enumeration>
1374
+ <xsd:enumeration value="useReplacementTrain">
1375
+ <xsd:annotation>
1376
+ <xsd:documentation>TPEG Pts39_2, use replacement train</xsd:documentation>
1377
+ </xsd:annotation>
1378
+ </xsd:enumeration>
1379
+ <xsd:enumeration value="useAlternativeRoute">
1380
+ <xsd:annotation>
1381
+ <xsd:documentation>TPEG Pts39_3, use the alternative route</xsd:documentation>
1382
+ </xsd:annotation>
1383
+ </xsd:enumeration>
1384
+ <xsd:enumeration value="goOnFoot">
1385
+ <xsd:annotation>
1386
+ <xsd:documentation>TPEG Pts39_4, go on foot</xsd:documentation>
1387
+ </xsd:annotation>
1388
+ </xsd:enumeration>
1389
+ <xsd:enumeration value="dangerLeaveStation">
1390
+ <xsd:annotation>
1391
+ <xsd:documentation>TPEG Pts39_5, please leave the station! Danger!</xsd:documentation>
1392
+ </xsd:annotation>
1393
+ </xsd:enumeration>
1394
+ <xsd:enumeration value="noMeansOfTravel">
1395
+ <xsd:annotation>
1396
+ <xsd:documentation>TPEG Pts39_6, no means of travel</xsd:documentation>
1397
+ </xsd:annotation>
1398
+ </xsd:enumeration>
1399
+ <xsd:enumeration value="useDifferentStops">
1400
+ <xsd:annotation>
1401
+ <xsd:documentation>TPEG Pts39_7, use different stops</xsd:documentation>
1402
+ </xsd:annotation>
1403
+ </xsd:enumeration>
1404
+ <xsd:enumeration value="useAlternativeStop">
1405
+ <xsd:annotation>
1406
+ <xsd:documentation>TPEG Pts39_8, use alternative stop</xsd:documentation>
1407
+ </xsd:annotation>
1408
+ </xsd:enumeration>
1409
+ <xsd:enumeration value="dangerDoNotLeaveVehicle">
1410
+ <xsd:annotation>
1411
+ <xsd:documentation>TPEG Pts39_9, do not leave vehicle! Danger!</xsd:documentation>
1412
+ </xsd:annotation>
1413
+ </xsd:enumeration>
1414
+ <xsd:enumeration value="takeAdviceAnnouncements">
1415
+ <xsd:annotation>
1416
+ <xsd:documentation>TPEG Pts39_10, take advice from announcements</xsd:documentation>
1417
+ </xsd:annotation>
1418
+ </xsd:enumeration>
1419
+ <xsd:enumeration value="takeAdvicePersonnel">
1420
+ <xsd:annotation>
1421
+ <xsd:documentation>TPEG Pts39_11, take advice from personnel</xsd:documentation>
1422
+ </xsd:annotation>
1423
+ </xsd:enumeration>
1424
+ <xsd:enumeration value="obeyAdvicePolice">
1425
+ <xsd:annotation>
1426
+ <xsd:documentation>TPEG Pts39_12, obey advice from police</xsd:documentation>
1427
+ </xsd:annotation>
1428
+ </xsd:enumeration>
1429
+ <xsd:enumeration value="useOtherPT">
1430
+ <xsd:annotation>
1431
+ <xsd:documentation>use other PT services</xsd:documentation>
1432
+ </xsd:annotation>
1433
+ </xsd:enumeration>
1434
+ <xsd:enumeration value="useInterchange">
1435
+ <xsd:annotation>
1436
+ <xsd:documentation>use interchange</xsd:documentation>
1437
+ </xsd:annotation>
1438
+ </xsd:enumeration>
1439
+ <xsd:enumeration value="noAdvice">
1440
+ <xsd:annotation>
1441
+ <xsd:documentation>no advice</xsd:documentation>
1442
+ </xsd:annotation>
1443
+ </xsd:enumeration>
1444
+ <xsd:enumeration value="undefinedAdvice">
1445
+ <xsd:annotation>
1446
+ <xsd:documentation>TPEG Pts39_255, undefined advice</xsd:documentation>
1447
+ </xsd:annotation>
1448
+ </xsd:enumeration>
1449
+ <xsd:enumeration value="takeDetour">
1450
+ <xsd:annotation>
1451
+ <xsd:documentation>take detour</xsd:documentation>
1452
+ </xsd:annotation>
1453
+ </xsd:enumeration>
1454
+ <xsd:enumeration value="useAlternativeAccess">
1455
+ <xsd:annotation>
1456
+ <xsd:documentation>change accessibility</xsd:documentation>
1457
+ </xsd:annotation>
1458
+ </xsd:enumeration>
1459
+ </xsd:restriction>
1460
+ </xsd:simpleType>
1461
+ <!-- ===================================================== -->
1462
+ <xsd:complexType name="BlockingStructure">
1463
+ <xsd:annotation>
1464
+ <xsd:documentation>Type for blocking.</xsd:documentation>
1465
+ </xsd:annotation>
1466
+ <xsd:sequence>
1467
+ <xsd:element name="JourneyPlanner" type="xsd:boolean" default="false" minOccurs="0">
1468
+ <xsd:annotation>
1469
+ <xsd:documentation>Whether information about parts of the NETWORK identified by AffectsScope should be blocked from the Journey Planner. Default is false; do not suppress.</xsd:documentation>
1470
+ </xsd:annotation>
1471
+ </xsd:element>
1472
+ <xsd:element name="RealTime" type="xsd:boolean" default="false" minOccurs="0">
1473
+ <xsd:annotation>
1474
+ <xsd:documentation>Whether information about parts of the NETWORK identified by AffectsScope should be blocked from real-time departure info systems. Default is false; do not suppress.</xsd:documentation>
1475
+ </xsd:annotation>
1476
+ </xsd:element>
1477
+ </xsd:sequence>
1478
+ </xsd:complexType>
1479
+ <xsd:complexType name="EasementsStructure">
1480
+ <xsd:annotation>
1481
+ <xsd:documentation>Type for easement info.</xsd:documentation>
1482
+ </xsd:annotation>
1483
+ <xsd:sequence>
1484
+ <xsd:element name="TicketRestrictions" type="TicketRestrictionEnumeration" minOccurs="0">
1485
+ <xsd:annotation>
1486
+ <xsd:documentation>Ticket restriction conditiosn in effect. TPEG pti table pti25.</xsd:documentation>
1487
+ </xsd:annotation>
1488
+ </xsd:element>
1489
+ <xsd:element name="Easement" type="NaturalLanguageStringStructure" minOccurs="0" maxOccurs="unbounded">
1490
+ <xsd:annotation>
1491
+ <xsd:documentation>Description of fare exceptions allowed because of disruption. (Unbounded since SIRI 2.0)</xsd:documentation>
1492
+ </xsd:annotation>
1493
+ </xsd:element>
1494
+ <xsd:element name="EasementRef" type="xsd:normalizedString" minOccurs="0">
1495
+ <xsd:annotation>
1496
+ <xsd:documentation>Refernce to a fare exceptions code that is allowed because of the disruption. An easement may relax a fare condition, for exampel "You may use your metro ticket on the bus', or 'You may use your bus ticket in teh metro between these two stops'. </xsd:documentation>
1497
+ </xsd:annotation>
1498
+ </xsd:element>
1499
+ </xsd:sequence>
1500
+ </xsd:complexType>
1501
+ <!--==Delay =========================================== -->
1502
+ <xsd:simpleType name="DelayBandEnumeration">
1503
+ <xsd:annotation>
1504
+ <xsd:documentation>Type for allowed values of DelayBand. Based on Datex2, with some additional values.</xsd:documentation>
1505
+ </xsd:annotation>
1506
+ <xsd:restriction base="xsd:normalizedString">
1507
+ <xsd:enumeration value="delayTwoMinutes"/>
1508
+ <xsd:enumeration value="upToThreeMinutes"/>
1509
+ <xsd:enumeration value="upToFourMinutes"/>
1510
+ <xsd:enumeration value="upToFiveMinutes"/>
1511
+ <xsd:enumeration value="upToEightMinutes"/>
1512
+ <xsd:enumeration value="negligible"/>
1513
+ <xsd:enumeration value="upToTenMinutes"/>
1514
+ <xsd:enumeration value="betweenTenMinutesAndThirtyMinutes"/>
1515
+ <xsd:enumeration value="betweenThirtyMinutesAndOneHour"/>
1516
+ <xsd:enumeration value="betweenOneHourAndThreeHours"/>
1517
+ <xsd:enumeration value="betweenThreeHoursAndSixHours"/>
1518
+ <xsd:enumeration value="longerThanSixHours"/>
1519
+ </xsd:restriction>
1520
+ </xsd:simpleType>
1521
+ <xsd:complexType name="DelaysStructure">
1522
+ <xsd:annotation>
1523
+ <xsd:documentation>Type for easement info.</xsd:documentation>
1524
+ </xsd:annotation>
1525
+ <xsd:sequence>
1526
+ <xsd:element name="DelayBand" type="DelayBandEnumeration" minOccurs="0">
1527
+ <xsd:annotation>
1528
+ <xsd:documentation>Time band into which delay will fall.</xsd:documentation>
1529
+ </xsd:annotation>
1530
+ </xsd:element>
1531
+ <xsd:element name="DelayType" type="D2LogicalModel:DelaysTypeEnum" minOccurs="0">
1532
+ <xsd:annotation>
1533
+ <xsd:documentation>Category of delay.</xsd:documentation>
1534
+ </xsd:annotation>
1535
+ </xsd:element>
1536
+ <xsd:element name="Delay" type="PositiveDurationType" minOccurs="0">
1537
+ <xsd:annotation>
1538
+ <xsd:documentation>Additional journey time needed to overcome disruption.</xsd:documentation>
1539
+ </xsd:annotation>
1540
+ </xsd:element>
1541
+ </xsd:sequence>
1542
+ </xsd:complexType>
1543
+ <!-- ======================================================================= -->
1544
+ <!-- ======================================================================= -->
1545
+ </xsd:schema>