Skip to content

Conversation

sydb
Copy link
Member

@sydb sydb commented Sep 5, 2025

Wow. We have been banging away at this for years, and I think we may finally have it right. (If you need convincing, see #135, #174, #354, and maybe #297.) This fix addresses #773.

I think if one or two people review this (at least in part by checking out this branch and trying some ODDs that have various @minOccurs and @maxOccus on various things) and find no problems, it is good to merge. (I.e., I do not think all 6 reviews need be in before merge.)

#773. I am quite confident it fixes the problem identified
in that issue, but does it break anything else?
@raffazizzi
Copy link
Contributor

FWIW I could only reproduce this issue on elementRef and classRef (to a model class) and this branch fixes the problem as far as I can tell.

Works on both dev and this branch:

  • <alternate minOccurs="0" maxOccurs="2">
  • <datatype minOccurs="0" maxOccurs="2">
  • <sequence minOccurs="0" maxOccurs="2">
  • <anyElement minOccurs="0" maxOccurs="2" except="http://www.tei-c.org/ns/1.0">

@sydb sydb requested a review from trishaoconnor September 29, 2025 15:44
@sydb sydb assigned trishaoconnor and unassigned torstenroeder Sep 29, 2025
@trishaoconnor
Copy link
Contributor

Tested using this odd file with @sydb and all looks well. test774odd.txt

Looks like it is ready to merge!

@trishaoconnor trishaoconnor merged commit 3a619a2 into dev Sep 29, 2025
4 checks passed
@trishaoconnor trishaoconnor deleted the sydb_773_min_0_max_2_or_more branch September 29, 2025 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conversion: relax resp: StylesheetsGroup Issue is suitable for the group-learning approach taken in the Stylesheets Coop Working Group. type: bug A bug report.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants