/ Aaron <[EMAIL PROTECTED]> was heard to say: | Anyways the error:trang lilypondxml.rng lilypondnew.rnc | /demudi/lilyxml/lilypondxml.rng:16: error: "start" pattern must contain at most one pattern | /demudi/lilyxml/lilypondxml.rng:20: error: "start" pattern must contain at most one pattern
The start pattern must contain a single element or a choice of elements.
So where you've got:
<start combine="choice">
<element name="book">
<element name="title">
<text/>
</element>
<element name="bookinfo">
<text />
<ref name="frontmatter"/>
</element>
<!-- don't remember whats with set -->
</element>
<element name="set">
<text />
</element>
</start>
you could use:
<start combine="choice">
<choice>
<element name="book">
<element name="title">
<text/>
</element>
<element name="bookinfo">
<text />
<ref name="frontmatter"/>
</element>
<!-- don't remember whats with set -->
</element>
<element name="set">
<text />
</element>
</choice>
</start>
to indicate that the start is either a book or a set.
After set, you've got
<!--A book can have one or more pieces or one or more songs -->
<choice>
<oneOrMore>
<element name="piece">
<text />
<optional>
<element name="pieceinfo">
which looks out of place in the start pattern. Maybe you meant that
to be inside the book?
Also, you have a whole bunch of start patterns all combined together
with choice. It'd probably be simpler to have a named pattern for each
of the possible starts and a single start pattern that was just a
choice among them.
Be seeing you,
norm
--
Norman Walsh <[EMAIL PROTECTED]> | Everything should be made as simple as
http://nwalsh.com/ | possible, but no simpler.
pgpHtIlGLYdy5.pgp
Description: PGP signature
