-
Notifications
You must be signed in to change notification settings - Fork 39
/
NeTEx_publication.xsd
8986 lines (8984 loc) · 408 KB
/
NeTEx_publication.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="iso-8859-1"?>
<xsd:schema xmlns="http://www.netex.org.uk/netex" xmlns:netex="http://www.netex.org.uk/netex" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:siri="http://www.siri.org.uk/siri" targetNamespace="http://www.netex.org.uk/netex" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.1" id="netex_publication">
<!-- ===SIRI system IDs for request =========================================================== -->
<xsd:import namespace="http://www.siri.org.uk/siri" schemaLocation="siri/siri_base-v2.0.xsd"/>
<xsd:import namespace="http://www.siri.org.uk/siri" schemaLocation="siri_utility/siri_participant-v2.0.xsd"/>
<xsd:import namespace="http://www.siri.org.uk/siri" schemaLocation="siri/siri_requests-v2.0.xsd"/>
<!-- ===Regular netex============================================================== -->
<xsd:include schemaLocation="netex_service/netex_dataObjectRequest_service.xsd"/>
<xsd:include schemaLocation="netex_service/netex_all.xsd"/>
<!-- ===eGIF/GovTalk Documentation ======================================= -->
<xsd:annotation>
<xsd:appinfo>
<Metadata xmlns="http://www.govtalk.gov.uk/CM/gms-xs">
<Aggregation>main schema</Aggregation>
<Audience>e-service developers</Audience>
<Contributor>CEN TC278 WG3 SG9 Team.</Contributor>
<Coverage>Europe</Coverage>
<Creator>First Drafted for NeTEx version 1.0 CEN TC278 WG3 SG9 Editor Nicholas Knowles. mailto:schemer@netex.org.uk</Creator>
<Date><Modified>2017-08-10</Modified>Rename PassengerContractEvent to PassengerContractEntry
Add constraints for CustomerPurchasePackage, CustomerPurchasePackageElement, CustomerPurchaseParameterAssignment
Add constraints for CustomerAccount, CustomerAccountStatus, TypeOf CustomerAccount,
Add constraints for CustomerEligibility, UserProfileEligibility, CommercialProfileEligibility, ResidentialQualifactionEligibility
</Date>
<Date><Modified>2017-06-29</Modified>CR048 add constraints WHITE LIST
Fix: Add Constraint on CUSTOMER
CR00310 add constraints on JOURNEY PART POSITION
</Date>
<Date><Modified>2017-05-09</Modified>Correct COnstraints for PointOnRoute
Add Missing Constraints For CommonSectionMember / PointOnSection and LinkOnSection er
Add Missing Constraints For GroupOfServicesMember , JourneyAccounting DelegatedResponsibilitySet
Reinstate Constraints for CAll
Fix constraints that were missing namespace on subpart
</Date>
<Date><Modified>2017-03-27</Modified>Various 1.1 changes see CRS.
CR0038 revise constraints on ResponsibilityRole </Date>
<Date><Modified>2011-01-17</Modified>V0.94 <!-- Revised--></Date>
<Date>
<Created>2010-09-04</Created>
<!-- Created from Siri.xsd -->
</Date>
<Description><p>netex Xml is an XML representation of the Transmodel model that can be used to exchange data objects between netex databases and other services.</p>.
<p> The same netex Xml of netex data objects can be used both in fine grained protocols that exchange one or more objects at a time, such as the SIRI based netex Xml web service, and in bulk publication exchange formats used to exchange whole data sets. </p>
<p>This netex Publication exchange XML schema defines a bulk delivery format to exchange netex objects as an XML document. (It has no dependency on SIRI).
<ul><li>For each data object type it describes an XML representation which can be used to exchange netex data.</li><li>It also describes filters to describe requests for publishing data. These can be used both to configure the publication, and to describe the contents of the published document, for example all Network Objects, or all current traffic events.</li><li>A particular use of the netex Publication Exchange format is to publish data from a NeTEx system: at regular intervals as an Xml document which can be transmitted to other systems by FTP or other communication transport means. </li></ul>
</p>
</Description>
<Format>
<MediaType>text/xml</MediaType>
<Syntax>http://www.w3.org/2001/XMLSchema</Syntax>
<Description>XML schema, W3C Recommendation 2001</Description>
</Format>
<Identifier>{http://www.netex.org.uk/schemas/1.0/xsd}netex_publication.xsd</Identifier>
<Language>[ISO 639-2/B] ENG</Language>
<Publisher>Kizoom Software Ltd, 16 High Holborn, London WC1V 6BX </Publisher>
<Relation>
<Requires>http://www.netex.org.uk/schemas/1.0/netex_filters.xsd</Requires>
<Requires>http://www.netex.org.uk/schemas/1.0/netex_all_objects.xsd</Requires>
</Relation>
<Rights>Unclassified
<Copyright>CEN, Crown Copyright 2009-2017</Copyright>
</Rights>
<Source>
<ul>
<li>Created for NeTEx.</li>
</ul>
</Source>
<Status>Version 1.1 Draft for approval</Status>
<Subject>
<Category>Arts, recreation and travel, Tourism, Travel (tourism), Transport,
Public transport, Bus services, Coach services,
Business and industry, Transport, Public transport,
Roads and Road transport.
</Category>
<Project>CEN TC278 WG3 SG9.</Project>
</Subject>
<Title>NeTEx XML schema. bulk Publication Interface for exchanging NeTEx data </Title>
<Type>Standard</Type>
</Metadata>
</xsd:appinfo>
<xsd:documentation> NeTEx PUBLICATION SCHEMA</xsd:documentation>
</xsd:annotation>
<!-- ======================================================================= -->
<xsd:element name="ParticipantRef" type="siri:ParticipantCodeType">
<xsd:annotation>
<xsd:documentation>Identifier of system requesting Data.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="PublicationRequest" type="PublicationRequestStructure">
<xsd:annotation>
<xsd:documentation>A bulk publication request for NeTEx objects specifying which elements should be returned. Can be echoed back in a publication response.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="PublicationRequestStructure">
<xsd:annotation>
<xsd:documentation>Type for Publication Request.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="RequestTimestamp" type="xsd:dateTime">
<xsd:annotation>
<xsd:documentation>Time of request.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element ref="ParticipantRef" minOccurs="0"/>
<xsd:element name="Description" type="MultilingualString" minOccurs="0"/>
<xsd:element name="topics" minOccurs="0">
<xsd:annotation>
<xsd:documentation>One or more Request filters that specify tthe data to be included in output. Multiple filters are logically ANDed.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="NetworkFrameTopic" type="NetworkFrameTopicStructure" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>Vaues to use select Network Objects.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="RequestPolicy" type="NetworkFrameRequestPolicyStructure" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Policies to apply when fetching data specified by Topics.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="SubscriptionPolicy" type="NetworkFrameSubscriptionPolicyStructure" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Policy to use when processing Network Subscriptions.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="version" type="xsd:NMTOKEN" default="1.0"/>
</xsd:complexType>
<!-- =======================================================================
-->
<xsd:element name="PublicationDelivery" type="PublicationDeliveryStructure">
<xsd:annotation>
<xsd:documentation>A set of NeTEx objects as assembled by a publication request or other service
Provides a general purpose wrapper for NeTEx data content.</xsd:documentation>
</xsd:annotation>
<!-- =======START OF CONSTRAINTS===================================
-->
<!-- =====REFERENTIAL INTEGRITY Constraints========================= -->
<!-- =====FRAMEWORK Constraints========================= -->
<!-- =====Codespace Key ========================== -->
<!-- ===== Codespace Unique=========================== -->
<xsd:unique name="Codespace_UniqueId">
<xsd:annotation>
<xsd:documentation>Every Codespace ID must be unique.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:Codespace"/>
<xsd:field xpath="@id"/>
</xsd:unique>
<!-- =====Codespace Key ========================== -->
<xsd:keyref name="Codespace_AnyKeyRef" refer="netex:Codespace_AnyVersionedKey">
<xsd:selector xpath=".//netex:CodespaceRef"/>
<xsd:field xpath="@ref"/>
</xsd:keyref>
<xsd:key name="Codespace_AnyVersionedKey">
<xsd:selector xpath=".//netex:Codespace"/>
<xsd:field xpath="@id"/>
</xsd:key>
<!-- ===== Codespace Xmlns ============================== -->
<xsd:key name="Codespace_AnyVersionedKey_Xmlns">
<!-- Correction AURIGE : netex: namespace needed -->
<!-- <xsd:selector xpath=".//netex:Codespace/Xmlns"/> -->
<xsd:selector xpath=".//netex:Codespace/netex:Xmlns"/>
<xsd:field xpath="."/>
</xsd:key>
<!-- =====DataSource=unique========================== -->
<xsd:unique name="DataSource_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [DataSource Id + Version] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:DataSource"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====DataSource Key ========================== -->
<xsd:keyref name="DataSource_AnyKeyRef" refer="netex:DataSource_AnyVersionedKey">
<xsd:selector xpath=".//netex:DataSourceRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="DataSource_AnyVersionedKey">
<xsd:selector xpath=".//netex:DataSource"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<xsd:key name="DataSource_AnyKey">
<xsd:selector xpath=".//netex:DataSource"/>
<xsd:field xpath="@id"/>
</xsd:key>
<!-- =====Branding============================== -->
<!-- =====Branding unique========================== -->
<xsd:unique name="Branding_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [Branding Id + Version] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:Branding"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====Branding Key ========================== -->
<xsd:keyref name="Branding_AnyKeyRef" refer="netex:Branding_AnyVersionedKey">
<xsd:selector xpath=".//netex:BrandingRef | .//netex:DefaultBrandingRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="Branding_AnyVersionedKey">
<xsd:selector xpath=".//netex:Branding"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====ResponsibilityRole============================== -->
<!-- =====ResponsibilityRole unique========================== -->
<xsd:unique name="ResponsibilityRole_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [ResponsibilityRole Id + Version] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:ResponsibilityRole"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====ResponsibilityRole Key ========================== -->
<xsd:keyref name="ResponsibilityRole_AnyKeyRef" refer="netex:ResponsibilityRole_AnyVersionedKey">
<xsd:selector xpath=".//netex:ResponsibilityRoleRef "/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="ResponsibilityRole_AnyVersionedKey">
<xsd:selector xpath=".//netex:ResponsibilityRole"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====ResponsibilitySet============================== -->
<!-- =====ResponsibilitySet unique========================== -->
<xsd:unique name="ResponsibilitySet_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [ResponsibilitySet Id + Version] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:ResponsibilitySet | .//netex:DelegatedResponsibilitySet"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====ResponsibilitySet Key ========================== -->
<xsd:keyref name="ResponsibilitySet_AnyKeyRef" refer="netex:ResponsibilitySet_AnyVersionedKey">
<xsd:selector xpath=".//netex:ResponsibilitySetRef | .//netex:DefaultResponsibilitySetRef | .//netex:DelegatedResponsibilitySetRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="ResponsibilitySet_AnyVersionedKey">
<xsd:selector xpath=".//netex:ResponsibilitySet"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====TypeOfResponsibilityRole============================== -->
<!-- =====TypeOfResponsibilityRole unique========================== -->
<xsd:unique name="TypeOfResponsibilityRole_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [TypeOfResponsibilityRole Id + Version] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:TypeOfResponsibilityRole"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====TypeOfResponsibilityRole Key ========================== -->
<xsd:keyref name="TypeOfResponsibilityRole_AnyKeyRef" refer="netex:TypeOfResponsibilityRole_AnyVersionedKey">
<xsd:selector xpath=".//netex:TypeOfResponsibilityRoleRef "/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="TypeOfResponsibilityRole_AnyVersionedKey">
<xsd:selector xpath=".//netex:TypeOfResponsibilityRole"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====ResponsibilityRoleAssignment============================== -->
<!-- =====Responsibility unique========================== -->
<xsd:unique name="ResponsibilityRoleAssignment_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [ResponsibilityRoleAssignment Id + Version] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:ResponsibilityRoleAssignment"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====Responsibility Key ========================== -->
<xsd:keyref name="ResponsibilityRoleAssignment_AnyKeyRef" refer="netex:ResponsibilityRoleAssignment_AnyVersionedKey">
<xsd:selector xpath=".//netex:ResponsibilityRoleAssignmentRef "/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="ResponsibilityRoleAssignment_AnyVersionedKey">
<xsd:selector xpath=".//netex:ResponsibilityRoleAssignment"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====Entity_Entity============================== -->
<!-- =====Entity_Entity unique========================== -->
<xsd:unique name="Entity_Entity_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [Entity_Entity Id ] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:Entity_Entity"/>
<xsd:field xpath="@id"/>
</xsd:unique>
<!-- =====Entity_Entity Key ========================== -->
<xsd:keyref name="Entity_Entity_AnyKeyRef" refer="netex:Entity_Entity_AnyVersionedKey">
<xsd:selector xpath=".//netex:Entity_EntityRef | .//netex:DefaultEntity_EntityRef"/>
<xsd:field xpath="@ref"/>
</xsd:keyref>
<xsd:key name="Entity_Entity_AnyVersionedKey">
<xsd:selector xpath=".//netex:Entity_Entity"/>
<xsd:field xpath="@id"/>
</xsd:key>
<!-- =====TypeOfEntity============================== -->
<!-- =====TypeOfEntity unique========================== -->
<xsd:unique name="TypeOfEntity_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [TypeOfEntity Id + TypeOfEntity] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:TypeOfEntity"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====TypeOfEntity============================== -->
<xsd:keyref name="TypeOfEntity_AnyKeyRef" refer="netex:TypeOfEntity_AnyVersionedKey">
<xsd:selector xpath=".//netex:TypeOfEntityRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<!-- =====TypeOfEntity Key ========================== -->
<xsd:key name="TypeOfEntity_AnyVersionedKey">
<xsd:selector xpath=".//netex:TypeOfEntity"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====Version============================== -->
<!-- =====Version unique========================== -->
<xsd:unique name="Version_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [Version Id + Version] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:Version"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====Version Key ========================== -->
<xsd:keyref name="Version_AnyKeyRef" refer="netex:Version_AnyVersionedKey">
<xsd:selector xpath=".//netex:VersionRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="Version_AnyVersionedKey">
<xsd:selector xpath=".//netex:Version"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====TypeOfFrame============================== -->
<!-- =====TypeOfFrame unique========================== -->
<xsd:unique name="TypeOfFrame_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [TypeOfFrame Id + TypeOfFrame] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:TypeOfFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====TypeOfFrame============================== -->
<xsd:keyref name="TypeOfFrame_AnyKeyRef" refer="netex:TypeOfFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:TypeOfFrameRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<!-- =====TypeOfFrame Key ========================== -->
<xsd:key name="TypeOfFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:TypeOfFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====AlternativeText============================== -->
<!-- =====AlternativeText unique========================== -->
<xsd:unique name="AlternativeText_UniqueBy_Id_AttributeName_UseForLanguage_Version">
<xsd:annotation>
<xsd:documentation>Every [AlternativeText Id + attributeName + useForLanguage + version] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:AlternativeText"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@attributeName"/>
<xsd:field xpath="@useForLanguage"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====AlternativeName============================== -->
<!-- =====AlternativeName unique========================== -->
<xsd:unique name="AlternativeName_UniqueBy_Id_Version_useForLanguage">
<xsd:annotation>
<xsd:documentation>Every [AlternativeName Id + version + order] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:AlternativeName"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
<xsd:field xpath="@order"/>
</xsd:unique>
<!-- =====TypeOfValidity============================== -->
<!-- =====TypeOfValidity unique========================== -->
<xsd:unique name="TypeOfValidity_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [TypeOfValidity Id + TypeOfValidity] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:TypeOfValidity"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====TypeOfValidity============================== -->
<xsd:keyref name="TypeOfValidity_AnyKeyRef" refer="netex:TypeOfValidity_AnyVersionedKey">
<xsd:selector xpath=".//netex:TypeOfValidityRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<!-- =====TypeOfValidity Key ========================== -->
<xsd:key name="TypeOfValidity_AnyVersionedKey">
<xsd:selector xpath=".//netex:TypeOfValidity"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====ValueSet unique========================== -->
<xsd:unique name="ValueSet_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [ValueSet Id + ValueSet] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:ValueSet"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====ValueSet============================== -->
<xsd:keyref name="ValueSet_AnyKeyRef" refer="netex:ValueSet_AnyVersionedKey">
<xsd:selector xpath=".//netex:ValueSetRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<!-- =====ValueSet Key ========================== -->
<xsd:key name="ValueSet_AnyVersionedKey">
<xsd:selector xpath=".//netex:ValueSet"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====PricingParameterSet unique========================== -->
<xsd:unique name="PricingParameterSet_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [PricingParameterSet Id + PricingParameterSet] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:PricingParameterSet"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====PricingParameterSet============================== -->
<xsd:keyref name="PricingParameterSet_AnyKeyRef" refer="netex:PricingParameterSet_AnyVersionedKey">
<xsd:selector xpath=".//netex:PricingParameterSetRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<!-- =====PricingParameterSet Key ========================== -->
<xsd:key name="PricingParameterSet_AnyVersionedKey">
<xsd:selector xpath=".//netex:PricingParameterSet"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====VersionFrame============================== -->
<!-- =====ResourceFrame unique========================== -->
<xsd:unique name="ResourceFrame_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [ResourceFrame Id + ResourceFrame] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:ResourceFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====ResourceFrame Key ========================== -->
<xsd:keyref name="ResourceFrame_AnyKeyRef" refer="netex:ResourceFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:ResourceFrameRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="ResourceFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:ResourceFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====CompositeFrame unique========================== -->
<xsd:unique name="CompositeFrame_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [CompositeFrame Id + CompositeFrame] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:CompositeFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====CompositeFrame Key ========================== -->
<xsd:keyref name="CompositeFrame_AnyKeyRef" refer="netex:CompositeFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:CompositeFrameRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="CompositeFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:CompositeFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====GeneralFrame unique========================== -->
<xsd:unique name="GeneralFrame_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [GeneralFrame Id + GeneralFrame] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:GeneralFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====GeneralFrame Key ========================== -->
<xsd:keyref name="GeneralFrame_AnyKeyRef" refer="netex:GeneralFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:GeneralFrameRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="GeneralFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:GeneralFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====ServiceCalendarFrame unique========================== -->
<xsd:unique name="ServiceCalendarFrame_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [ServiceCalendarFrame Id + ServiceCalendarFrame] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:ServiceCalendarFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====ServiceCalendarFrame Key ========================== -->
<xsd:keyref name="ServiceCalendarFrame_AnyKeyRef" refer="netex:ServiceCalendarFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:ServiceCalendarFrameRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="ServiceCalendarFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:ServiceCalendarFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====InfrastructureFrame unique========================== -->
<xsd:unique name="InfrastructureFrame_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [InfrastructureFrame Id + InfrastructureFrame] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:InfrastructureFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====InfrastructureFrame Key ========================== -->
<xsd:keyref name="InfrastructureFrame_AnyKeyRef" refer="netex:InfrastructureFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:InfrastructureFrameRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="InfrastructureFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:InfrastructureFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====SiteFrame unique========================== -->
<xsd:unique name="SiteFrame_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [SiteFrame Id + SiteFrame] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:SiteFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====SiteFrame Key ========================== -->
<xsd:keyref name="SiteFrame_AnyKeyRef" refer="netex:SiteFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:SiteFrameRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="SiteFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:SiteFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====ServiceFrame unique========================== -->
<xsd:unique name="ServiceFrame_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [ServiceFrame Id + ServiceFrame] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:ServiceFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====ServiceFrame Key ========================== -->
<xsd:keyref name="ServiceFrame_AnyKeyRef" refer="netex:ServiceFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:ServiceFrameRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="ServiceFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:ServiceFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====TimetableFrame unique========================== -->
<xsd:unique name="TimetableFrame_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [TimetableFrame Id + TimetableFrame] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:TimetableFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====TimetableFrame Key ========================== -->
<xsd:keyref name="TimetableFrame_AnyKeyRef" refer="netex:TimetableFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:TimetableFrameRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="TimetableFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:TimetableFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====VehicleScheduleFrame unique========================== -->
<xsd:unique name="VehicleScheduleFrame_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [VehicleScheduleFrame Id + VehicleScheduleFrame] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:VehicleScheduleFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====VehicleScheduleFrame Key ========================== -->
<xsd:keyref name="VehicleScheduleFrame_AnyKeyRef" refer="netex:VehicleScheduleFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:VehicleScheduleFrameRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="VehicleScheduleFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:VehicleScheduleFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====DriverScheduleFrame unique========================== -->
<xsd:unique name="DriverScheduleFrame_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [DriverScheduleFrame Id + DriverScheduleFrame] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:DriverScheduleFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====DriverScheduleFrame Key ========================== -->
<xsd:keyref name="DriverScheduleFrame_AnyKeyRef" refer="netex:DriverScheduleFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:DriverScheduleFrameRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="DriverScheduleFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:DriverScheduleFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====FareFrame unique========================== -->
<xsd:unique name="FareFrame_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [FareFrame Id + FareFrame] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:FareFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====FareFrame Key ========================== -->
<xsd:keyref name="FareFrame_AnyKeyRef" refer="netex:FareFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:FareFrameRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="FareFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:FareFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====SalesTransactionFrame unique========================== -->
<xsd:unique name="SalesTransactionFrame_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [SalesTransactionFrame Id + SalesTransactionFrame] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:SalesTransactionFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====SalesTransactionFrame Key ========================== -->
<xsd:keyref name="SalesTransactionFrame_AnyKeyRef" refer="netex:SalesTransactionFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:SalesTransactionFrameRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="SalesTransactionFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:SalesTransactionFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!--- =====VersionFrame key==========================
<xsd:keyref name="VersionFrame_AnyKeyRef" refer="netex:VersionFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:VersionFrameRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="VersionFrame_AnyVersionedKey">
<xsd:selector xpath=".//netex:VersionFrame | .//netex:ResourceFrame | .//netex:InfrastructureFrame | .//netex:ServiceCalendarFrame| .//netex:SiteFrame| .//netex:TimetableFrame | .//netex:GeneralFrame| .//netex:CompositeFrame | .//netex:VehicleScheduleFrame"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key> -->
<!-- =====GeneralGroupOfEntities============================== -->
<!-- =====GeneralGroupOfEntities unique========================== -->
<xsd:unique name="GeneralGroupOfEntities_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [GeneralGroupOfEntities Id + GeneralGroupOfEntities] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:GeneralGroupOfEntities"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====GeneralGroupOfEntities Key ========================== -->
<xsd:keyref name="GeneralGroupOfEntities_AnyKeyRef" refer="netex:GeneralGroupOfEntities_AnyVersionedKey">
<xsd:selector xpath=".//netex:GeneralGroupOfEntitiesRef | DistributionGroupRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="GeneralGroupOfEntities_AnyVersionedKey">
<xsd:selector xpath=".//netex:GeneralGroupOfEntities"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====PurposeOfGrouping============================== -->
<!-- =====PurposeOfGrouping unique========================== -->
<xsd:unique name="PurposeOfGrouping_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [PurposeOfGrouping Id + PurposeOfGrouping] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:PurposeOfGrouping"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====PurposeOfGrouping Key ========================== -->
<xsd:keyref name="PurposeOfGrouping_AnyKeyRef" refer="netex:PurposeOfGrouping_AnyVersionedKey">
<xsd:selector xpath=".//netex:PurposeOfGroupingRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="PurposeOfGrouping_AnyVersionedKey">
<xsd:selector xpath=".//netex:PurposeOfGrouping"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====TypeOfPoint============================== -->
<!-- =====Point============================== -->
<xsd:keyref name="Point_AnyKeyRef" refer="netex:Point_AnyVersionedKey">
<xsd:selector xpath=".//netex:PointRef |.//netex:ProjectedObjectRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="Point_AnyVersionedKey">
<xsd:selector xpath=".//netex:Point | .//netex:RoutePoint | .//netex:TimingPoint | .//netex:ReliefPoint | .//netex:ParkingPoint | .//netex:GaragePoint | .//netex:ScheduledStopPoint | .//netex:RoadJunction | .//netex:RailwayJunction | .//netex:WireJunction | .//netex:ActivationPoint | .//netex:BeaconPoint | .//netex:TrafficControlPoint |.//netex:PathJunction |.//netex:FareScheduledStopPoint |.//netex:BorderPoint "/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====TypeOfPoint unique========================== -->
<xsd:unique name="TypeOfPoint_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [TypeOfPoint Id + Version] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:TypeOfPoint"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====TypeOfPoint Key ========================== -->
<xsd:keyref name="TypeOfPoint_KeyRef" refer="netex:TypeOfPoint_AnyVersionedKey">
<xsd:selector xpath=".//netex:TypeOfPointRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="TypeOfPoint_AnyVersionedKey">
<xsd:selector xpath=".//netex:TypeOfPoint"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====Link============================== -->
<xsd:keyref name="Link_AnyKeyRef" refer="netex:Link_AnyVersionedKey">
<xsd:selector xpath=".//netex:LinkRef |.//netex:ProjectToLinkRef | .//netex:ProjectedLinkRef |.//netex:ProjectedObjectRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="Link_AnyVersionedKey">
<xsd:selector xpath=".//netex:Link | .//netex:RouteLink | .//netex:TimingLink | .//netex:PathLink | .//netex:ServiceLink | .//netex:RoadElement | .//netex:RailwayElement | .//netex:WireElement | .//netex:ActivationLink "/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====TypeOfLink============================== -->
<xsd:keyref name="TypeOfLink_AnyKeyRef" refer="netex:TypeOfLink_AnyVersionedKey">
<xsd:selector xpath=".//netex:TypeOfLinkRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="TypeOfLink_AnyVersionedKey">
<xsd:selector xpath=".//netex:TypeOfLink"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====TypeOfZone============================== -->
<xsd:keyref name="TypeOfZone_AnyKeyRef" refer="netex:TypeOfZone_AnyVersionedKey">
<xsd:selector xpath=".//netex:TypeOfZoneRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="TypeOfZone_AnyVersionedKey">
<xsd:selector xpath=".//netex:TypeOfZone"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====PointOnLink============================== -->
<!-- =====PointOnLink unique========================== -->
<xsd:unique name="PointOnLink_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [PointOnLink Id + PointOnLink] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:PointOnLink| .//netex:StartPointOnLink| .//netex:EndPointOnLink"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====PointOnLink Key ========================== -->
<xsd:keyref name="PointOnLink_AnyKeyRef" refer="netex:PointOnLink_AnyVersionedKey">
<xsd:selector xpath=".//netex:PointOnLinkRef |.//netex:StartPointOnLinkRef |.//netex:EndPointOnLinkRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="PointOnLink_AnyVersionedKey">
<xsd:selector xpath=".//netex:PointOnLink"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====CommonSection============================== -->
<!-- =====CommonSection unique========================== -->
<xsd:unique name="CommonSection_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [CommonSection Id + Version] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:CommonSection"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====CommonSection Key ========================== -->
<xsd:keyref name="CommonSection_AnyKeyRef" refer="netex:CommonSection_AnyVersionedKey">
<xsd:selector xpath=".//netex:CommonSectionRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="CommonSection_AnyVersionedKey">
<xsd:selector xpath=".//netex:CommonSection"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====PointOnSection============================== -->
<!-- =====GeneralSection============================== -->
<!-- =====GeneralSection unique========================== -->
<xsd:unique name="GeneralSection_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [GeneralSection Id + Version] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:GeneralSection"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====GeneralSection Key ========================== -->
<xsd:keyref name="GeneralSection_AnyKeyRef" refer="netex:GeneralSection_AnyVersionedKey">
<xsd:selector xpath=".//netex:GeneralSectionRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="GeneralSection_AnyVersionedKey">
<xsd:selector xpath=".//netex:GeneralSection"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====GeneralSection Key ========================== -->
<xsd:keyref name="ParentSection_AnyKeyRef" refer="netex:ParentSection_AnyVersionedKey">
<xsd:selector xpath=".//netex:ParentSectionRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="ParentSection_AnyVersionedKey">
<xsd:selector xpath=".//netex:CommonSection| .//netex:GeneralSection"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====PointOnSection============================== -->
<!-- =====PointOnSection unique========================== -->
<xsd:unique name="PointOnSection_UniqueBy_Id_Version_Order">
<xsd:annotation>
<xsd:documentation>Every [PointOnSection Id + Version +order] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:PointOnSection"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
<xsd:field xpath="@order"/>
</xsd:unique>
<!-- =====PointOnSection Key ========================== -->
<xsd:keyref name="PointOnSection_KeyRef" refer="netex:PointOnSection_AnyVersionedKey">
<xsd:selector xpath=".//netex:PointOnSectionRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
<xsd:field xpath="@order"/>
</xsd:keyref>
<xsd:key name="PointOnSection_AnyVersionedKey">
<xsd:selector xpath=".//netex:PointOnSection"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
<xsd:field xpath="@order"/>
</xsd:key>
<!-- =====LinkOnSection============================== -->
<!-- =====LinkOnSection unique========================== -->
<xsd:unique name="LinkOnSection_UniqueBy_Id_Version_Order">
<xsd:annotation>
<xsd:documentation>Every [LinkOnSection Id + Version] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:LinkOnSection"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
<xsd:field xpath="@order"/>
</xsd:unique>
<!-- =====LinkOnSection Key ========================== -->
<xsd:keyref name="LinkOnSection_KeyRef" refer="netex:LinkOnSection_AnyVersionedKey">
<xsd:selector xpath=".//netex:LinkOnSectionRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
<xsd:field xpath="@order"/>
</xsd:keyref>
<xsd:key name="LinkOnSection_AnyVersionedKey">
<xsd:selector xpath=".//netex:LinkOnSection"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
<xsd:field xpath="@order"/>
</xsd:key>
<!-- =====Zone============================== -->
<xsd:keyref name="Zone_AnyKeyRef" refer="netex:Zone_AnyVersionedKey">
<xsd:selector xpath=".//netex:ZoneRef | .//netex:ParentZoneRef | .//netex:ProjectedZoneRef | .//netex:ProjectToZoneRef |.//netex:ProjectedObjectRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="Zone_AnyVersionedKey">
<xsd:selector xpath=".//netex:Zone | .//netex:TariffZone | .//netex:FareZone | .//netex:RoutingConstraintZone | .//netex:ConnectionZone | .//netex:PointOfInterest | .//netex:Parking | .//netex:ParkingArea | .//netex:ParkingBay | .//netex:TopographicPlace | .//netex:Quay | .//netex:AccessSpace | .//netex:PointOfInterestSpace | .//netex:StopPlace| .//netex:Garage| .//netex:EquipmentPlace | .//netex:FlexibleArea | .//netex:HailAndRideArea | .//netex:FlexibleQuay| .//netex:StopPlaceEntance | .//netex:Entrance | .//netex:PointOfInterestEntrance | .//netex:BoardingPosition | .//netex:VehicleStoppingPlace | .//netex:VehicleEntrance | .//netex:TransportAdministrativeZone"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====TariffZone============================== -->
<!-- =====TariffZone unique========================== -->
<xsd:unique name="TariffZone_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [TariffZone Id + Version] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:TariffZone"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====TariffZone Key ========================== -->
<xsd:keyref name="TariffZone_AnyKeyRef" refer="netex:TariffZone_AnyVersionedKey">
<xsd:selector xpath=".//netex:TariffZoneRef | .//netex:ParentTariffZoneRef | .//netex:StartTariffZoneRef | .//netex:EndTariffZoneRef | .//netex:FareZoneRef |.//netex:ProjectedObjectRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="TariffZone_AnyVersionedKey">
<xsd:selector xpath=".//netex:TariffZone | .//netex:FareZone"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====TypeOfProjection============================== -->
<!-- =====TypeOfProjection unique========================== -->
<xsd:unique name="TypeOfProjection_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [TypeOfProjection Id + Version] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:TypeOfProjection"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====TypeOfProjection Key ========================== -->
<xsd:keyref name="TypeOfProjection_AnyKeyRef" refer="netex:TypeOfProjection_AnyVersionedKey">
<xsd:selector xpath=".//netex:TypeOfProjectionRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="TypeOfProjection_AnyVersionedKey">
<xsd:selector xpath=".//netex:TypeOfProjection"/>
<xsd:field xpath="@id"/>