Skip to content

Commit ba3baf4

Browse files
TypeOfFlexibleService should have identity constraints (#442)
* TypeOfFlexibleService should have identity constraints Fix #441 * Fix a broken example * Lint and update documentation tables --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 8404109 commit ba3baf4

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

examples/functions/timetable/Netex_07.2_Bus_FlexibleTimetable_WithPattern.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,18 @@ The Calendar is shown coded as
144144
<DefaultCodespaceRef ref="mybus"/>
145145
</FrameDefaults>
146146
<frames>
147+
<ResourceFrame version="1" id="mybus:svf_24">
148+
<Name>ValueSet for TypeOfFlexibleService</Name>
149+
<typesOfValue>
150+
<ValueSet id="myvalueset" version="any" nameOfClass="TypeOfFlexibleService">
151+
<values>
152+
<TypeOfFlexibleService id="myfs" version="any">
153+
<Name>My Flexible Service</Name>
154+
</TypeOfFlexibleService>
155+
</values>
156+
</ValueSet>
157+
</typesOfValue>
158+
</ResourceFrame>
147159
<SiteFrame version="1" id="mybus:svf_24">
148160
<Name>Stops for Winter timetable for Flexible Route 12 </Name>
149161
<flexibleStopPlaces>

xsd/NeTEx_publication.xsd

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7047,6 +7047,27 @@ Correct COnstraints for PointOnRoute
70477047
<xsd:field xpath="@id"/>
70487048
<xsd:field xpath="@version"/>
70497049
</xsd:key>
7050+
<!-- =====TypeOfFlexibleService============================== -->
7051+
<!-- =====TypeOfFlexibleService unique========================== -->
7052+
<xsd:unique name="TypeOfFlexibleService_UniqueBy_Id_Version">
7053+
<xsd:annotation>
7054+
<xsd:documentation>Every [TypeOfFlexibleService Id + Version] must be unique within document.</xsd:documentation>
7055+
</xsd:annotation>
7056+
<xsd:selector xpath=".//netex:TypeOfFlexibleService"/>
7057+
<xsd:field xpath="@id"/>
7058+
<xsd:field xpath="@version"/>
7059+
</xsd:unique>
7060+
<!-- =====TypeOfService Key ========================== -->
7061+
<xsd:keyref name="TypeOfFlexibleService_AnyKeyRef" refer="netex:TypeOfFlexibleService_AnyVersionedKey">
7062+
<xsd:selector xpath=".//netex:TypeOfFlexibleServiceRef"/>
7063+
<xsd:field xpath="@ref"/>
7064+
<xsd:field xpath="@version"/>
7065+
</xsd:keyref>
7066+
<xsd:key name="TypeOfFlexibleService_AnyVersionedKey">
7067+
<xsd:selector xpath=".//netex:TypeOfFlexibleService"/>
7068+
<xsd:field xpath="@id"/>
7069+
<xsd:field xpath="@version"/>
7070+
</xsd:key>
70507071
<!-- =====TypeOfProductCategory============================== -->
70517072
<!-- =====TypeOfProductCategory unique========================== -->
70527073
<xsd:unique name="TypeOfProductCategory_UniqueBy_Id_Version">

0 commit comments

Comments
 (0)