NeTEx-CEN/NeTEx

VehicleMeetingPointInPath does not have unique constraint checking

Closed this issue · 4 comments

Failing example NewModes-CarPoolingExample.xml

@skinkie what is the problem? Isn't it done in NeTEx_publication.xsd:

		<!-- =====VehicleMeetingPointInPath========================== -->
		<!-- =====VehicleMeetingPointInPath unique========================== -->
		<xsd:unique name="VehicleMeetingPointInPath_UniqueBy_Id_Version_Order">
			<xsd:annotation>
				<xsd:documentation>Every [VehicleMeetingPointInPath Id + Version + order] must be unique within document.</xsd:documentation>
			</xsd:annotation>
			<xsd:selector xpath=".//netex:VehicleMeetingPointInPath"/>
			<xsd:field xpath="@id"/>
			<xsd:field xpath="@version"/>
			<xsd:field xpath="@order"/>
		</xsd:unique>
		<!-- =====VehicleMeetingPointInPath Key ========================== -->
		<xsd:keyref name="VehicleMeetingPointInPath_KeyRef" refer="netex:VehicleMeetingPointInPath_AnyVersionedKey_ordered">
			<xsd:selector xpath=".//netex:VehicleMeetingPointInPathRef | .//netex:PointInSingleJourneyPathRef"/>
			<xsd:field xpath="@ref"/>
			<xsd:field xpath="@version"/>
			<xsd:field xpath="@order"/>
		</xsd:keyref>
		<xsd:key name="VehicleMeetingPointInPath_AnyVersionedKey_ordered">
			<xsd:selector xpath=".//netex:VehicleMeetingPointInPath"/>
			<xsd:field xpath="@id"/>
			<xsd:field xpath="@version"/>
			<xsd:field xpath="@order"/>
		</xsd:key>

It is pretty interesting to see that Ref there has "@order" too.

@skinkie something to do or not?

Yes, we can close another ticket as well.