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

Definition of sequence/@preserveOrder is backwards #2390

Closed
hcayless opened this issue Jan 27, 2023 · 2 comments
Closed

Definition of sequence/@preserveOrder is backwards #2390

hcayless opened this issue Jan 27, 2023 · 2 comments

Comments

@hcayless
Copy link
Member

hcayless commented Jan 27, 2023

In https://tei-c.org/release/doc/tei-p5-doc/en/html/ref-sequence.html, the definition of @preserveOrder is

if true, indicates that the order in which component elements of a sequence appear in a document must correspond to the order in which they are given in the content model.

It should read something like: "If false, indicates that the component elements of a sequence may occur in any order."

When preserveOrder is false, in a RelaxNG schema generated from the ODD, an <interleave> element is produced, meaning children may occur in any order, rather than needing to have the order given in the sequence.

tl;dr: sequence/@preserveOrder="true" doesn't do anything, it's sequence/@preserveOrder="false" that matters, and so that should be the focus of the definition.

@joeytakeda
Copy link
Contributor

Possibly a duplicate of #2154 ?

@hcayless
Copy link
Member Author

@joeytakeda It is indeed! That one seems to have gotten wrapped around the axle somewhere along the line...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants