aamehl wrote:
I am new to the list and new to schemas.I have a relaxng xml schema I am writing which has multiple possible roots: book with piece children or song childrenor piece with a score childor song with a score childI tried a seperate start pair for each root but was told by the parser that I can't have more than one either delete the extras or rename them.
You must use choice pattern inside start. If you are using compact syntax and have named patterns for book, piece and song you can do it by:
start = book | piece | song
book = element book { piece | song }
piece = element piece { score }
song = element song { score }
score = element scrore { ... }
...
HTH,
Jirka
--
------------------------------------------------------------------
Jirka Kosek e-mail: [EMAIL PROTECTED] http://www.kosek.cz
------------------------------------------------------------------
Profesionální školení a poradenství v oblasti technologií XML.
Podívejte se na náš nově spuštěný web http://DocBook.cz
Podrobný přehled školení http://xmlguru.cz/skoleni/
------------------------------------------------------------------
smime.p7s
Description: S/MIME Cryptographic Signature
