Skip to content

Update netex_typeOfValue_version.xsd - #988

Open
ue71603 wants to merge 24 commits into
v2.0from
fix_Type_Of_Value_problem
Open

ue71603 wants to merge 24 commits into
v2.0from
fix_Type_Of_Value_problem

Conversation

@ue71603

@ue71603 ue71603 commented Feb 9, 2026 •

Copy link
Copy Markdown
Contributor
  • XMLSpy always had a problem. This would fix it. But did I do it right?
  • Also updated some headers in the other fail examples so that they can be validated locally.

@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

thbar commented Feb 11, 2026

Copy link
Copy Markdown
Contributor

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

ue71603 commented Feb 11, 2026

Copy link
Copy Markdown
Contributor Author

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

@thbar

thbar commented Feb 11, 2026

Copy link
Copy Markdown
Contributor

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

Aurige commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

SfUniqueLineId

Commit 6778f14 addresses this comment

Comment thread xsd/NeTEx_publication.xsd Resolved
Comment thread xsd/NeTEx_publication.xsd Resolved
Comment thread xsd/NeTEx_publication.xsd Resolved
Correction of the selector

Co-authored-by: Christophe Duquesne <christophe.duquesne@aurigetech.com>
@TuThoThai

Copy link
Copy Markdown
Contributor

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

thbar commented Feb 23, 2026 •

Copy link
Copy Markdown
Contributor

@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

ue71603 commented Feb 24, 2026

Copy link
Copy Markdown
Contributor Author

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

ue71603 commented Feb 24, 2026

Copy link
Copy Markdown
Contributor Author

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

ue71603 commented Feb 24, 2026

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
Contributor

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 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

@thbar @TuThoThai also ready. how does the parent-branch-is-up-to-date work? How can I do this myself.

@thbar

thbar commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

how does the parent-branch-is-up-to-date work? How can I do this myself.

@ue71603 I figured out what's happening: the check should not run when a PR is targeting v2.0, only for v2.1-wip or v3.0-wip (because the idea is to ensure the WIP branches are always up-to-date from their respective parents, before we merge something in).

It is a matter of changing the ruleset, so that it includes v2.1-wip and v3.0-wip, but not v2.0.

I will fix it on my end then will document things a bit better, so that it's easier for anyone to look into this.

TuThoThai
TuThoThai previously approved these changes Sep 17, 2026

@TuThoThai TuThoThai left a comment

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.

Thanks for the work on this one, @ue71603!

@skinkie skinkie left a comment

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.

I think this change is really wrong. We can discuss.

@ue71603

ue71603 commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

@skinkie What is really wrong? Which part?

@ue71603

ue71603 commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

@skinkie It seems to me that the change does exactly what it should. See new example

Comment thread xsd/NeTEx_publication.xsd Resolved
TuThoThai and others added 5 commits November 8, 2026 18:49
Co-authored-by: Stefan de Konink <stefan@konink.de>
Co-authored-by: Stefan de Konink <stefan@konink.de>
Co-authored-by: Stefan de Konink <stefan@konink.de>
Co-authored-by: Stefan de Konink <stefan@konink.de>
@TuThoThai

Copy link
Copy Markdown
Contributor

To be updated by @ue71603 before we move forward

@TuThoThai TuThoThai modified the milestones: netex_2.1, netex_2.0 Nov 17, 2026
@ue71603
ue71603 requested review from TuThoThai and skinkie November 17, 2026 19:06
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

6 participants