forked from VDVde/TRIAS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTrias.xsd
212 lines (212 loc) · 8.44 KB
/
Trias.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.vdv.de/trias" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.vdv.de/trias" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="Trias_Alerts.xsd"/>
<xs:include schemaLocation="Trias_Booking.xsd"/>
<xs:include schemaLocation="Trias_Connections.xsd"/>
<xs:include schemaLocation="Trias_Facilities.xsd"/>
<xs:include schemaLocation="Trias_Fares.xsd"/>
<xs:include schemaLocation="Trias_IndividualTrips.xsd"/>
<xs:include schemaLocation="Trias_Locations.xsd"/>
<xs:include schemaLocation="Trias_Maps.xsd"/>
<xs:include schemaLocation="Trias_Personalisation.xsd"/>
<xs:include schemaLocation="Trias_Positioning.xsd"/>
<xs:include schemaLocation="Trias_Refine.xsd"/>
<xs:include schemaLocation="Trias_RequestSupport.xsd"/>
<xs:include schemaLocation="Trias_ServiceRegister.xsd"/>
<xs:include schemaLocation="Trias_StopEvents.xsd"/>
<xs:include schemaLocation="Trias_TripInfo.xsd"/>
<xs:include schemaLocation="Trias_Trips.xsd"/>
<xs:include schemaLocation="Trias_VehicleInterface.xsd"/>
<xs:element name="Trias">
<xs:annotation>
<xs:documentation>Root element for TRIAS messages</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice>
<xs:group ref="RequestGroup"/>
<xs:group ref="ResponseGroup"/>
<xs:element name="Extension" type="xs:anyType"/>
</xs:choice>
<xs:attribute name="version" type="xs:NMTOKEN" use="required" fixed="1.3"/>
</xs:complexType>
</xs:element>
<xs:annotation>
<xs:documentation>================ Requests =============================================</xs:documentation>
</xs:annotation>
<xs:element name="ServiceRequest" type="ServiceRequestStructure">
<xs:annotation>
<xs:documentation>Service request element</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="ServiceRequestStructure">
<xs:annotation>
<xs:documentation>Request structure - wrapping generic SIRI request elements.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="AbstractTriasServiceRequestStructure">
<xs:sequence>
<xs:element name="RequestPayload" type="RequestPayloadStructure">
<xs:annotation>
<xs:documentation>Service specific request contents.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="SubscriptionRequest" type="SubscriptionRequestStructure">
<xs:annotation>
<xs:documentation>Subscription request element</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="SubscriptionRequestStructure">
<xs:annotation>
<xs:documentation>Subscription request structure - wrapping generic SIRI request element.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="AbstractTriasSubscriptionRequestStructure">
<xs:sequence>
<xs:group ref="AlertSettingsGroup"/>
<xs:group ref="SubscriptionRequestGroup"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:group name="RequestGroup">
<xs:annotation>
<xs:documentation>Group of all requests, including Heartbeat, Status, Termination etc.</xs:documentation>
</xs:annotation>
<xs:choice>
<xs:group ref="ServiceRequestGroup"/>
<xs:group ref="DeliveryRequestGroup"/>
<xs:group ref="StatusRequestGroup"/>
</xs:choice>
</xs:group>
<xs:group name="ServiceRequestGroup">
<xs:annotation>
<xs:documentation>Group of all service-related requests</xs:documentation>
</xs:annotation>
<xs:choice>
<xs:element ref="ServiceRequest"/>
<xs:element ref="SubscriptionRequest"/>
<xs:element ref="TerminateSubscriptionRequest"/>
</xs:choice>
</xs:group>
<xs:complexType name="RequestPayloadStructure">
<xs:annotation>
<xs:documentation>Choice of payload requests</xs:documentation>
</xs:annotation>
<xs:choice>
<xs:element ref="BookingInfoRequest"/>
<xs:element ref="ConnectionDemandRequest"/>
<xs:element ref="ConnectionDemandDeleteRequest"/>
<xs:element ref="ConnectionReportRequest"/>
<xs:element ref="ConnectionStatusRequest"/>
<xs:element ref="FacilityRequest"/>
<xs:element ref="FacilityStatusReport"/>
<xs:element ref="FaresRequest"/>
<xs:element ref="GeoCoordinatesRequest"/>
<xs:element ref="ImageCoordinatesRequest"/>
<xs:element ref="IndividualRouteRequest"/>
<xs:element ref="LocationInformationRequest"/>
<xs:element ref="MapServiceRequest"/>
<xs:element ref="PersonalisationRequest"/>
<xs:element ref="PositioningRequest"/>
<xs:element ref="RefineRequest"/>
<xs:element ref="ServiceRegisterRequest"/>
<xs:element ref="StopEventRequest"/>
<xs:element ref="TripInfoRequest"/>
<xs:element ref="TripRequest"/>
<xs:element ref="VehicleDataRequest"/>
<xs:element ref="VehicleInteractionRequest"/>
</xs:choice>
</xs:complexType>
<xs:group name="SubscriptionRequestGroup">
<xs:annotation>
<xs:documentation>Group of subscription requests.</xs:documentation>
</xs:annotation>
<xs:choice>
<xs:element ref="SituationExchangeSubscriptionRequest"/>
<xs:element ref="FacilityMonitoringSubscriptionRequest"/>
<xs:element ref="TripMonitoringSubscriptionRequest"/>
<xs:element ref="ConnectionProtectionSubscriptionRequest"/>
</xs:choice>
</xs:group>
<xs:annotation>
<xs:documentation>================ Responses =============================================</xs:documentation>
</xs:annotation>
<xs:group name="ResponseGroup">
<xs:annotation>
<xs:documentation>Group of all response messages, including Heartbeat, Status, Termination etc.</xs:documentation>
</xs:annotation>
<xs:choice>
<xs:group ref="ServiceResponseGroup"/>
<xs:group ref="DeliveryResponseGroup"/>
<xs:group ref="StatusResponseGroup"/>
</xs:choice>
</xs:group>
<xs:group name="DeliveryResponseGroup">
<xs:annotation>
<xs:documentation>Group of all topical response messages</xs:documentation>
</xs:annotation>
<xs:choice>
<xs:element ref="ServiceDelivery"/>
<xs:element ref="DataReadyAcknowledgement"/>
<xs:element ref="DataReceivedAcknowledgement"/>
</xs:choice>
</xs:group>
<xs:element name="ServiceDelivery" type="ServiceDeliveryStructure">
<xs:annotation>
<xs:documentation>Service delivery element</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="ServiceDeliveryStructure">
<xs:annotation>
<xs:documentation>Delivery structure - wrapping generic SIRI response elements.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="AbstractTriasResponseStructure">
<xs:sequence>
<xs:element name="DeliveryPayload" type="DeliveryPayloadStructure">
<xs:annotation>
<xs:documentation>Service specific delivery contents.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="DeliveryPayloadStructure">
<xs:annotation>
<xs:documentation>Choice of delivery payload elements.</xs:documentation>
</xs:annotation>
<xs:choice>
<xs:element ref="BookingInfoResponse"/>
<xs:element ref="ConnectionDemandResponse"/>
<xs:element ref="ConnectionDemandDeleteResponse"/>
<xs:element ref="ConnectionReportResponse"/>
<xs:element ref="ConnectionStatusNotification"/>
<xs:element ref="ConnectionStatusResponse"/>
<xs:element ref="FacilityMonitoringDelivery"/>
<xs:element ref="FacilityResponse"/>
<xs:element ref="FacilityStatusReportResponse"/>
<xs:element ref="FaresResponse"/>
<xs:element ref="GeoCoordinatesResponse"/>
<xs:element ref="ImageCoordinatesResponse"/>
<xs:element ref="IndividualRouteResponse"/>
<xs:element ref="LocationInformationResponse"/>
<xs:element ref="MapServiceResponse"/>
<xs:element ref="PersonalisationResponse"/>
<xs:element ref="PositioningResponse"/>
<xs:element ref="RefineResponse"/>
<xs:element ref="ServiceRegisterResponse"/>
<xs:element ref="SituationExchangeDelivery"/>
<xs:element ref="StopEventResponse"/>
<xs:element ref="TripInfoResponse"/>
<xs:element ref="TripMonitoringDelivery"/>
<xs:element ref="TripResponse"/>
<xs:element ref="VehicleDataResponse"/>
<xs:element ref="VehicleInteractionResponse"/>
</xs:choice>
</xs:complexType>
</xs:schema>