Skip to content

Update netex_typeOfValue_version.xsd#988

Open
ue71603 wants to merge 9 commits intov2.0from
fix_Type_Of_Value_problem
Open

Update netex_typeOfValue_version.xsd#988
ue71603 wants to merge 9 commits intov2.0from
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: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>
@TuThoThai
Copy link
Collaborator

After discussion with @thbar, moving this to v2.0.1 to give us time to examine @skinkie latest comment and ensuring the CI is not failing

@thbar
Copy link
Collaborator

thbar commented Feb 23, 2026

@TuThoThai I think we have more work on this to do ; given the need to ship, are you ok to move this to v2.0.1? EDIT: crossed messages 😄

@ue71603
Copy link
Contributor Author

ue71603 commented Feb 24, 2026

This is not really a KeyValue standard thing, but only uniqueness within the Type.
I already agreed to do it in 2.0.1.
However, when this is not solved all new XMLspys will report a warning an every time open that file as well and be there. So, to work with it, it is annoying.

Co-authored-by: Christophe Duquesne <christophe.duquesne@aurigetech.com>
@ue71603
Copy link
Contributor Author

ue71603 commented Feb 24, 2026

We should not have added the other problems to this PR which was on typeOfValue.

However, we are here now, and I think we just have to remove this:


		<!-- =====KeyValuePair unique============================== -->
		<xsd:unique name="KeyValuePair">
			<xsd:annotation>
				<xsd:documentation>Every Key Value Pair must be unique.</xsd:documentation>
			</xsd:annotation>
			<xsd:selector xpath=".//netex:KeyValue"/>
			<xsd:field xpath="netex:Key"/>
			<xsd:field xpath="netex:Value"/>
		</xsd:unique>
		<!-- =====PrivateCodeType unique============================== -->
		<xsd:unique name="PrivateCodeType">
			<xsd:annotation>
				<xsd:documentation>Every PrivateCode type must be unique.</xsd:documentation>
			</xsd:annotation>
			<xsd:selector xpath=".//netex:PrivateCode"/>
			<xsd:field xpath="@type"/>
		</xsd:unique>

This is in my view semantically wrong for KeyValue which are not primary keys and also probably for PrivateCode.

@ue71603
Copy link
Contributor Author

ue71603 commented Feb 24, 2026

PrivateCode is even worse. Because most will not use type it will try to do this across the board. For the id-attribute at least the class is used as well.
so I definitely want those to constraints gone.

@TuThoThai
Copy link
Collaborator

As of 13 March 2026:

  • roll back this PR to only address the error netex_typeOfValue_version.xsd
  • start a new issue / pull request to address the need (or not) of a constraint on KeyValue & PrivateCodeType and tag it for v3.0

To be done by @ue71603

@ue71603 ue71603 requested review from Aurige and TuThoThai March 16, 2026 13:34
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