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

mixed pattern warning #9

Open
obermann opened this issue Jul 11, 2020 · 1 comment
Open

mixed pattern warning #9

obermann opened this issue Jul 11, 2020 · 1 comment

Comments

@obermann
Copy link

obermann commented Jul 11, 2020

Definition of pattern in the tutorial (chapter 8) is wrong because
<mixed> p </mixed>
is NOT short for
<interleave> <text/> p </interleave>
but IS short for
<interleave> <text/> <group> p </group> </interleave>
(of course when p is >1)

Apparently this omission has history:
https://markmail.org/thread/opo5titnrythjnsy
https://markmail.org/message/nypy2dk24rtavg3o

The automagic grouping came straight from TREX and I did not find any discussion how it is motivated. Why specification authors decided on such exotic usability? The O'Reilly book "RELAX NG" even has a chapter "6.8 Mixed Content Models with Order" which states that a grouping is a special additional possibility: "If you want to fix the order of the child elements, just embed a group pattern inside a mixed pattern" + "These content models are quite unusual in XML". I totally agree with the later and wish to future RELAX NG users more luck learning about <mixed>.

@svanteschubert
Copy link
Contributor

Does anybody have a reference to the original docbook being used by the tutorial?
I have stumbled till now only over the OASIS RelaxNG spec and compatibility guide DocBook in #12
If we get the rest, we should merge the other errata as well.

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

No branches or pull requests

2 participants