Skip to content

Update netex_typeOfValue_version.xsd#988

Open
ue71603 wants to merge 5 commits intonextfrom
fix_Type_Of_Value_problem
Open

Update netex_typeOfValue_version.xsd#988
ue71603 wants to merge 5 commits intonextfrom
fix_Type_Of_Value_problem

Conversation

@ue71603
Copy link
Contributor

@ue71603 ue71603 commented Feb 9, 2026

XMLSpy always had a problem.
This would fix it. But did I do it right? and then I would need to apply it to master too.

@ue71603 ue71603 added this to the netex_2.0 milestone Feb 9, 2026
@ue71603 ue71603 added the bug Technical mistake, inconsistency with the documentation, etc. label Feb 9, 2026
@thbar
Copy link
Collaborator

thbar commented Feb 11, 2026

I'm not well versed enough to understand if that's good or not (and time is limited before release).

I wonder if that's something that could be delayed to v2.0.1 ?

cc @TuThoThai your opinion on this too?

@ue71603
Copy link
Contributor Author

ue71603 commented Feb 11, 2026

We certainly can delay it. The new XMLSpy always complaints about the XSD with two warnings.

@thbar
Copy link
Collaborator

thbar commented Feb 11, 2026

Thank you @ue71603 ; this will give us time for testing. We'll create a milestone and move it to there.

Base automatically changed from master_to_next to next February 13, 2026 11:03
@TuThoThai TuThoThai linked an issue Feb 17, 2026 that may be closed by this pull request
Adding a comment for future deletion since the object is marked as deprecated from v2.0
TuThoThai
TuThoThai previously approved these changes Feb 17, 2026
@Aurige
Copy link
Contributor

Aurige commented Feb 19, 2026

Why do we have these constraints here ? Shouldn't they be in Publication as all the other ?
The only happens a few time
\netex_framework\netex_responsibility\netex_responsibility_version.xsd
(Ln 182, Char 4) <xsd:unique name="KeyValuePair">
(Ln 231, Char 4) <xsd:unique name="PrivateCodeType">

\netex_framework\netex_responsibility\netex_typeOfValue_version.xsd
(Ln 178, Char 4) <xsd:unique name="TypeOfValue_Unique">

\netex_part_2\part2_frames\netex_serviceFrame_version.xsd
(Ln 130, Char 4) <xsd:unique name="SfUniqueLineId">

\netex_part_2\part2_frames\netex_serviceFrame_version.xsd
(Ln 130, Char 4) <xsd:unique name="SfUniqueLineId">

This is not harming, but to be consistent and avoid any double in the future, it may be worth moving them all to NeTEx_Publication.xsd

As per @Aurige comment, the following unicity constraints have been moved to NeTEx_publication.xsd:
- KeyValuePair
- PrivateCodeType
- TypeOfValue_Unique

SfUniqueLineId was deleted as already a comment in the file.
@TuThoThai
Copy link
Collaborator

SfUniqueLineId

Commit 6778f14 addresses this comment

</xsd:unique>
<!-- =====TypeOfValue Key========================== -->
<xsd:key name="TypeOfValue_Key">
<xsd:selector xpath="values/TypeOfValue"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<xsd:selector xpath="values/TypeOfValue"/>
<xsd:selector xpath=".//values/TypeOfValue"/>

Copy link
Contributor

Choose a reason for hiding this comment

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

Are we sure this works at this point? I don't know for sure, but shouldn't this be modeled like KeyValue?

Copy link
Contributor

Choose a reason for hiding this comment

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

not sure what you mean here, KeyValue pairs don't have Id

<xsd:field xpath="@version"/>
</xsd:key>
<!-- =====TypeOfValue unique========================== -->
<xsd:unique name="TypeOfValue_Unique">
Copy link
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)

Correction of the selector

Co-authored-by: Christophe Duquesne <christophe.duquesne@aurigetech.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Technical mistake, inconsistency with the documentation, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Problems with NeTEx_publication.xsd under XMLSpy

5 participants

Comments