Skip to content

Consolidated changes and fixes until May 17th 2019#88

Merged
skinkie merged 213 commits into
TransmodelEcosystem:masterfrom
entur:nk_may_2019
Apr 14, 2020
Merged

Consolidated changes and fixes until May 17th 2019#88
skinkie merged 213 commits into
TransmodelEcosystem:masterfrom
entur:nk_may_2019

Conversation

@syversenkr
Copy link
Copy Markdown
Contributor

Consolidation of compatible changes and fixes up until May 17th 2019, used in Norway from August 2019.
For manual rebasing of CEN NeTEx master per NeTEx spec v1.1 document updates of late (August/November) 2019.

nick-knowles and others added 30 commits January 19, 2018 19:15
…ctIdType instead of reffering to "id". Because jaxb generation of the model causes generated netex xml to have namespace prefix
…ill not let GroupOfStopPlaces use xsd group 'ZoneGroup', because it contains fields only relevant to Zones (ParentZoneRef/typeOfZoneRefs_RelStructure). Will neither let GroupOfStopPlaces extend Zone_VersionStructure. Because it's not a zone, and it will cause a name collision with members
…nt by adding documentation (from NeTEx spec Part 1) to OrganistaionTypeEnums
…to date after additional pull requests merged.
Comment thread xsd/NeTEx_publication.xsd Outdated
<xsd:keyref name="Equipment_KeyRef" refer="netex:Equipment_AnyVersionedKey">
<xsd:selector xpath=".//netex:EquipmentRef"/>
</xsd:unique>-->
<!-- === (GENERAL) Equipment Key ========================== -->
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent error

Comment thread xsd/NeTEx_publication.xsd Outdated
@@ -3066,17 +3171,17 @@ Provides a general purpose wrapper for NeTEx data content.</xsd:documentation>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====Entrance============================== -->
<!-- =====Entrance==============================
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this commented out?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like a bug ...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will assume an error, as
xsd:element name="Entrance" type="SiteEntrance_VersionStructure" abstract="false" substitutionGroup="SiteComponent">
is defined in netex_part_1/part1_ifopt/netex_ifopt_site_version.xsd:337

REMARK: Have kept the comment regardless, someone (@nick-knowles ?) should review and (maybe) revert to again include the
<xsd:keyref name="Entrance_AnyKeyRef" refer="netex:Entrance_AnyVersionedKey">

Comment thread xsd/NeTEx_publication.xsd Outdated
@@ -3435,6 +3610,30 @@ Provides a general purpose wrapper for NeTEx data content.</xsd:documentation>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>

<!-- =====ParkingProperties============================== -->
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent error

Comment thread xsd/NeTEx_publication.xsd Outdated
@@ -3837,7 +4036,7 @@ Provides a general purpose wrapper for NeTEx data content.</xsd:documentation>
</xsd:unique>
<!-- =====RailwayJunction Key ========================== -->
<xsd:keyref name="RailwayJunction_KeyRef" refer="netex:RailwayJunction_AnyVersionedKey">
<xsd:selector xpath=".//netex:RailwayJunctionRef | .//netex:RailwayPointRef | .//netex:RailwayElement/netex:FromPointRef | .//netex:RailwayElement/netex:ToPointRef"/>
<xsd:selector xpath=" .//netex:RailwayPointRef | .//netex:RailwayElement/netex:FromPointRef | .//netex:RailwayElement/netex:ToPointRef"/>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Space after xpath="

Comment thread xsd/NeTEx_publication.xsd
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====PointInJourneyPatternLink============================== -->
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering where did go to...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to NeTEx_publication_timetable.xsd:5316
(diff v1.0 vs v1.1 are similar, but the concept is removed from xsd/NeTEx_publication_timetable.xsd in v1.1)

Comment thread xsd/NeTEx_publication.xsd
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====FareProduct============================== -->
<!-- =====FareProduct Key ========================== -->
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where did this go to?

Copy link
Copy Markdown
Contributor Author

@syversenkr syversenkr Apr 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be looked into, as it seems the refactoring missed this concept in the NeTEx_publication_timetable.xsd
See output from
grep -irHn5 "FareProduct Key" *
for v1.09 and v1.1 (May 17th 2019).

Copy link
Copy Markdown
Contributor Author

@syversenkr syversenkr Apr 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(file attachement failed)

v1.0:

xsd/NeTEx_publication.xsd-6368-			<xsd:selector xpath=".//netex:BorderPoint  "/>
xsd/NeTEx_publication.xsd-6369-			<xsd:field xpath="@id"/>
xsd/NeTEx_publication.xsd-6370-			<xsd:field xpath="@version"/>
xsd/NeTEx_publication.xsd-6371-		</xsd:key>
xsd/NeTEx_publication.xsd-6372-		<!-- =====FareProduct============================== -->
xsd/NeTEx_publication.xsd:6373:		<!-- =====FareProduct Key ========================== -->
xsd/NeTEx_publication.xsd-6374-		<!-- 
xsd/NeTEx_publication.xsd-6375-		<xsd:keyref name="FareProduct_KeyRef" refer="netex:FareProduct_AnyVersionedKey">
xsd/NeTEx_publication.xsd-6376-			<xsd:selector xpath=".//netex:FareProductRef |.//netex:SupplementToFareProductRef "/>
xsd/NeTEx_publication.xsd-6377-			<xsd:field xpath="@ref"/>
xsd/NeTEx_publication.xsd-6378-			<xsd:field xpath="@version"/>
--
--
xsd/NeTEx_publication.xsd-6474-			</xsd:annotation>
xsd/NeTEx_publication.xsd-6475-			<xsd:selector xpath=".//netex:PreassignedFareProduct  "/>
xsd/NeTEx_publication.xsd-6476-			<xsd:field xpath="@id"/>
xsd/NeTEx_publication.xsd-6477-			<xsd:field xpath="@version"/>
xsd/NeTEx_publication.xsd-6478-		</xsd:unique>
xsd/NeTEx_publication.xsd:6479:		<!-- =====PreassignedFareProduct Key ========================== -->
xsd/NeTEx_publication.xsd-6480-		<xsd:keyref name="PreassignedFareProduct_KeyRef" refer="netex:PreassignedFareProduct_AnyVersionedKey">
xsd/NeTEx_publication.xsd-6481-			<xsd:selector xpath=".//netex:PreassignedFareProductRef"/>
xsd/NeTEx_publication.xsd-6482-			<xsd:field xpath="@ref"/>
xsd/NeTEx_publication.xsd-6483-			<xsd:field xpath="@version"/>
xsd/NeTEx_publication.xsd-6484-		</xsd:keyref>
--
--
xsd/NeTEx_publication_timetable.xsd-6382-			<xsd:selector xpath=".//netex:BorderPoint  "/>
xsd/NeTEx_publication_timetable.xsd-6383-			<xsd:field xpath="@id"/>
xsd/NeTEx_publication_timetable.xsd-6384-			<xsd:field xpath="@version"/>
xsd/NeTEx_publication_timetable.xsd-6385-		</xsd:key>
xsd/NeTEx_publication_timetable.xsd-6386-		<!-- =====FareProduct============================== -->
xsd/NeTEx_publication_timetable.xsd:6387:		<!-- =====FareProduct Key ========================== -->
xsd/NeTEx_publication_timetable.xsd-6388-		<!--
xsd/NeTEx_publication_timetable.xsd-6389-		<xsd:keyref name="FareProduct_KeyRef" refer="netex:FareProduct_AnyVersionedKey">
xsd/NeTEx_publication_timetable.xsd-6390-			<xsd:selector xpath=".//netex:FareProductRef |.//netex:SupplementToFareProductRef "/>
xsd/NeTEx_publication_timetable.xsd-6391-			<xsd:field xpath="@ref"/>
xsd/NeTEx_publication_timetable.xsd-6392-			<xsd:field xpath="@version"/>
--
--
xsd/NeTEx_publication_timetable.xsd-6488-			</xsd:annotation>
xsd/NeTEx_publication_timetable.xsd-6489-			<xsd:selector xpath=".//netex:PreassignedFareProduct  "/>
xsd/NeTEx_publication_timetable.xsd-6490-			<xsd:field xpath="@id"/>
xsd/NeTEx_publication_timetable.xsd-6491-			<xsd:field xpath="@version"/>
xsd/NeTEx_publication_timetable.xsd-6492-		</xsd:unique>
xsd/NeTEx_publication_timetable.xsd:6493:		<!-- =====PreassignedFareProduct Key ========================== -->
xsd/NeTEx_publication_timetable.xsd-6494-		<xsd:keyref name="PreassignedFareProduct_KeyRef" refer="netex:PreassignedFareProduct_AnyVersionedKey">
xsd/NeTEx_publication_timetable.xsd-6495-			<xsd:selector xpath=".//netex:PreassignedFareProductRef"/>
xsd/NeTEx_publication_timetable.xsd-6496-			<xsd:field xpath="@ref"/>
xsd/NeTEx_publication_timetable.xsd-6497-			<xsd:field xpath="@version"/>
xsd/NeTEx_publication_timetable.xsd-6498-		</xsd:keyref>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v1.1 (per 17th may 2019)

NeTEx_publication.xsd-6622-			</xsd:annotation>
NeTEx_publication.xsd-6623-			<xsd:selector xpath=".//netex:PreassignedFareProduct"/>
NeTEx_publication.xsd-6624-			<xsd:field xpath="@id"/>
NeTEx_publication.xsd-6625-			<xsd:field xpath="@version"/>
NeTEx_publication.xsd-6626-		</xsd:unique>
NeTEx_publication.xsd:6627:		<!-- =====PreassignedFareProduct Key ========================== -->
NeTEx_publication.xsd-6628-		<xsd:keyref name="PreassignedFareProduct_KeyRef" refer="netex:PreassignedFareProduct_AnyVersionedKey">
NeTEx_publication.xsd-6629-			<xsd:selector xpath=".//netex:PreassignedFareProductRef | .//netex:SupplementToFareProductRef"/>
NeTEx_publication.xsd-6630-			<xsd:field xpath="@ref"/>
NeTEx_publication.xsd-6631-			<xsd:field xpath="@version"/>
NeTEx_publication.xsd-6632-		</xsd:keyref>

Comment thread xsd/NeTEx_publication.xsd
@@ -7241,7 +7431,7 @@ Provides a general purpose wrapper for NeTEx data content.</xsd:documentation>
<xsd:annotation>
<xsd:documentation>Every [FareTable Id + Version] must be unique within document.</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath=".//netex:FareTable"/>
<xsd:selector xpath=".//netex:FareTable | .//netex:StandardFareTable"/>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many of the Fare selectors are using multiple spaces around |

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have also corrected these where spottet, but probably heaps more in the code. Though cosmetic, does not affect the functionality, these and similar issues should be cleaned up iterative when spotted.

Comment thread xsd/NeTEx_publication.xsd Outdated
<xsd:field xpath="@version"/>
</xsd:unique>
<xsd:keyref name="EligibilityChangePolicy_KeyRef" refer="netex:EligibilityChangePolicy_AnyVersionedKey">
<xsd:selector xpath=" .//netex:EligibilityChangePolicyRef"/>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space after xpath="

@@ -118,18 +132,6 @@ Rail transport, Roads and Road transport
</xsd:sequence>
</xsd:group>
<!-- =====GROUPING=============================================== -->
<xsd:complexType name="groupOfEntitiesInFrame_RelStructure">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So where did this go?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line 67

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to netex_framework/netex_genericFramework/netex_grouping_version.xsd:67
(except that, contents of v1.0 and v.1.1 seems to be the same)

@Aurige
Copy link
Copy Markdown
Contributor

Aurige commented Apr 6, 2020

I did a quick walk throug but didn't spot other points than Stefan ! So most important seems to ba a cleaning of some trailing spaces in NeTEx_publication.xsd

@syversenkr
Copy link
Copy Markdown
Contributor Author

I can fix the spottet errors in NeTEx_publication.xsd and add the update to the pull in a little while

@Aurige
Copy link
Copy Markdown
Contributor

Aurige commented Apr 7, 2020

Ok, so shall we merge this version ?

@syversenkr
Copy link
Copy Markdown
Contributor Author

Yes indeed, I believe we should.

@skinkie skinkie merged commit 17c3b06 into TransmodelEcosystem:master Apr 14, 2020
@syversenkr syversenkr changed the title Changes and fixes up until May 17th 2019 Consolidated changes and fixes up until May 17th 2019 Apr 14, 2020
@syversenkr syversenkr changed the title Consolidated changes and fixes up until May 17th 2019 Consolidated changes and fixes until May 17th 2019 Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants