Skip to content
11 changes: 11 additions & 0 deletions xsd/NeTEx_publication.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,16 @@
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====TypeOfValue unique========================== -->
<xsd:unique name="TypeOfValue_Unique">
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.

unique and key on the same attribute is redundant (key is enough)

<xsd:selector xpath="values/TypeOfValue"/>
<xsd:field xpath="@id"/>
</xsd:unique>
<!-- =====TypeOfValue Key========================== -->
<xsd:key name="TypeOfValue_Key">
<xsd:selector xpath=".//values/TypeOfValue"/>
<xsd:field xpath="@id"/>
</xsd:key>
<!-- =====ValueSet unique========================== -->
<xsd:unique name="ValueSet_UniqueBy_Id_Version">
<xsd:annotation>
Expand Down Expand Up @@ -13017,6 +13027,7 @@
</xsd:key>
<!-- =====WheelchairVehicle ================================ -->
<!-- =====WheelchairVehicle unique========================== -->
<!--This section can be deleted at the next update as WheelchairVehicle is marked deprecated since v2.0-->
<xsd:unique name="WheelchairVehicle_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [WheelchairVehicle Id + Version] must be unique within document.</xsd:documentation>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,6 @@ Rail transport, Roads and Road transport
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:unique name="TypeOfValue_Unique">
<xsd:selector xpath="values/TypeOfValue/Id"/>
<xsd:field xpath="."/>
</xsd:unique>
<xsd:key name="TypeOfValue_Key">
<xsd:selector xpath="values/TypeOfValue/Id"/>
<xsd:field xpath="."/>
</xsd:key>
</xsd:element>
<xsd:complexType name="ValueSet_VersionStructure">
<xsd:annotation>
Expand Down
5 changes: 0 additions & 5 deletions xsd/netex_part_2/part2_frames/netex_serviceFrame_version.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,6 @@ Rail transport, Roads and Road transport
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<!--
<xsd:unique name="SfUniqueLineId">
<xsd:selector xpath=".//netex:lines/Line"/>
<xsd:field xpath="Id"/>
</xsd:unique> -->
</xsd:element>
<xsd:complexType name="Service_VersionFrameStructure">
<xsd:annotation>
Expand Down
Loading