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 children


or piece with a score child

or song with a score child

I 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/
------------------------------------------------------------------

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to