Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeOfNotice referential constraint fixes #741

Merged
merged 2 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions xsd/NeTEx_publication.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -5999,6 +5999,27 @@
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====TypeOfNotice============================== -->
<!-- =====TypeOfNotice unique========================== -->
<xsd:unique name="TypeOfNotice_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [Notice Id + Version] must be unique within document.</xsd:documentation>
skinkie marked this conversation as resolved.
Show resolved Hide resolved
</xsd:annotation>
<xsd:selector xpath=".//netex:TypeOfNotice"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====TypeOfNotice Key ========================== -->
<xsd:keyref name="TypeOfNotice_KeyRef" refer="netex:TypeOfNotice_AnyVersionedKey">
<xsd:selector xpath=".//netex:TypeOfNoticeRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="TypeOfNotice_AnyVersionedKey">
<xsd:selector xpath=".//netex:TypeOfNotice"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====NoticeAssignment============================== -->
<!-- =====NoticeAssignment unique========================== -->
<xsd:unique name="NoticeAssignment_UniqueBy_Id_Version_Order">
Expand Down
21 changes: 21 additions & 0 deletions xsd/NeTEx_publication_timetable.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -4620,6 +4620,27 @@ Provides a general purose wrapper for NeTEx data content.</xsd:documentation>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====TypeOfNotice============================== -->
<!-- =====TypeOfNotice unique========================== -->
<xsd:unique name="TypeOfNotice_UniqueBy_Id_Version">
<xsd:annotation>
<xsd:documentation>Every [Notice Id + Version] must be unique within document.</xsd:documentation>
skinkie marked this conversation as resolved.
Show resolved Hide resolved
</xsd:annotation>
<xsd:selector xpath=".//netex:TypeOfNotice"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:unique>
<!-- =====TypeOfNotice Key ========================== -->
<xsd:keyref name="TypeOfNotice_KeyRef" refer="netex:TypeOfNotice_AnyVersionedKey">
<xsd:selector xpath=".//netex:TypeOfNoticeRef"/>
<xsd:field xpath="@ref"/>
<xsd:field xpath="@version"/>
</xsd:keyref>
<xsd:key name="TypeOfNotice_AnyVersionedKey">
<xsd:selector xpath=".//netex:TypeOfNotice"/>
<xsd:field xpath="@id"/>
<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====NoticeAssignment============================== -->
<!-- =====NoticeAssignment unique========================== -->
<xsd:unique name="NoticeAssignment_UniqueBy_Id_Version_Order">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ Rail transport, Roads and Road transport
</xsd:simpleType>
<xsd:element name="TypeOfNoticeRef" type="TypeOfNoticeRefStructure" substitutionGroup="TypeOfEntityRef">
<xsd:annotation>
<xsd:documentation>Reference to a TYPE OF NOTICe.</xsd:documentation>
<xsd:documentation>Reference to a TYPE OF NOTICE.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="TypeOfNoticeRefStructure">
Expand Down
Loading