Skip to content

mixed pattern warning #9

@obermann

Description

@obermann

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>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions