Skip to content

Commit

Permalink
Adding OperatingDayView to DatedVehcileJourney
Browse files Browse the repository at this point in the history
  • Loading branch information
ue71603 committed Nov 30, 2024
1 parent 315f33c commit 556e98a
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 8 deletions.
3 changes: 3 additions & 0 deletions examples/functions/versioning/Netex_Uniqueness_01.xml
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,9 @@ This is part 1 of a multistep example on versioning
</SpecialService>
<DatedServiceJourney version="001" id="bar:foo4">
<Name>JOURNEY</Name>
<OperatingDayView>
<CalendarDate>2024-11-30</CalendarDate>
</OperatingDayView>
</DatedServiceJourney>
<DeadRun version="001" id="bar:foo5">
<Name>JOURNEY</Name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,29 @@ Rail transport, Roads and Road transport
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!-- ======================================================================= -->
<xsd:element name="OperatingDayView" substitutionGroup="DerivedView">
<xsd:annotation>
<xsd:documentation>Simplified view of OPERATING DAY. All data will be derived through the relationship.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="OperatingDay_DerivedViewStructure"/>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="OperatingDay_DerivedViewStructure">
<xsd:annotation>
<xsd:documentation>Type for an OPERATING DAY VIEW.</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="DerivedViewStructure">
<xsd:sequence>
<xsd:group ref="OperatingDayGroup"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:group name="OperatingDayGroup">
<xsd:annotation>
<xsd:documentation>Elements for an OPERATING DAY.</xsd:documentation>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,18 @@ Rail transport, Roads and Road transport
<xsd:documentation>DATED VEHICLE JOURNEYs for which current VEHICLE JOURNEY is an alteration (i.e. change, replacement, supplement). +v2.0</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element ref="OperatingDayRef" minOccurs="0">
<xsd:annotation>
<xsd:documentation>EXPECTED TO BE MANDATORY - left with minOccurs="0" only to avoid breaking compatibility with old rail datasets</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:choice minOccurs="0">
<xsd:element ref="OperatorRef">
<xsd:annotation>
<xsd:documentation>EXPECTED TO BE MANDATORY - left with minOccurs="0" only to avoid breaking compatibility with old rail datasets and also in the case when OperatorView is used. +v2.0</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element ref="OperatorView">
<xsd:annotation>
<xsd:documentation>Used in some cases, when no OperatorRef is used. At least the OPERATING DAY must be provided as date. +v2.0</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:choice>
<xsd:element ref="UicOperatingPeriod" minOccurs="0">
<xsd:annotation>
<xsd:documentation>** DEPRECATED ** not to be used - left available only to avoid breaking compatibility with old rail datasets -v2.0</xsd:documentation>
Expand Down Expand Up @@ -396,4 +403,4 @@ The VIEW includes derived ancillary data from referenced entities.</xsd:document
</xsd:complexContent>
</xsd:complexType>
<!-- ======================================================================= -->
</xsd:schema>
</xsd:schema>
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ The VIEW includes derived ancillary data from referenced entities.</xsd:document
</xsd:annotation>
<xsd:sequence>
<xsd:choice minOccurs="0">
<xsd:element ref="OperatorRef"/>
<xsd:element ref="OperatorView"/>
<xsd:element ref="OperatingDayRef"/>
<xsd:element ref="OperatingDayView"/>
</xsd:choice>
<xsd:choice minOccurs="0">
<xsd:annotation>
Expand Down

0 comments on commit 556e98a

Please sign in to comment.