Hi Aaron,

On ven, 2005-07-22 at 14:16 +0000, aamehl wrote:
> Hi all,
>
> 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.
>
>
> So how do I write a schema with three possible root elements?

You can either add a combine="choice" attribute on your start patterns
(or use start |= ... in the compact syntax) or embed a choice within
your start pattern:

start = book|article|...

Hope this helps.

Eric
--
Carnet web :
           http://eric.van-der-vlist.com/blog?t=category&a=Fran%C3%A7ais
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------



YAHOO! GROUPS LINKS




Reply via email to