Youre right I infact was going to delete this. Choice is only useful in the way I want for attributes. ie to give the user a list of values to choose from like in databases..
but I that doen't work for text.

> 1)
>
>   <define name="time">
>     <element name="time">
>       <choice>
>         <value>4/4</value>
>         <value>3/4</value>
>         <value>2/4</value>
>         <value>5/6</value>
>         <value>6/4</value>
>         <value>7/4</value>
>         <value>6/8</value>
>         <value>2/2</value>
>         <value>2/8</value>
>         <value>3/8</value>
>         <value>4/8</value>
>         <value>5/8</value>
>       </choice>
>       <text/>
>     </element>
>
> I don't know what you want to achieve here, but you can't do a choice
> between values and text...
>
> 2)
>
>   <start>
>     <!--Here is an outline of the structure of lilach a book can be the
> root element it must have either one or more pieces or  one or more
> songs-->
>     <choice>
>       <ref name="book"/>
>       <ref name="piece"/>
>       <ref name="song"/>
>       <ref name="set"/>
>     </choice>
>   </start>
>
> and
>
>  <define name="set">
>     <oneOrMore>
>       <ref name="book"/>
>     </oneOrMore>
>   </define>
>
> leads to a oneOrMore pattern in a start and that's forbidden (XML
> documents can have only one root...).

At a time but I want the possiblily of root being either set, book piece or song.


> Replace that by:
>
>  <define name="set">
>     <element name="set">
>       <oneOrMore>
>         <ref name="book"/>
>       </oneOrMore>
>     </element>
>   </define>
>
> and that will be fine...
I did thanks

Aaron
now what about the tuplet problem?
I will try again.

Thanks
Aaron
> Hope that helps.
>
> Eric

> --
> Freelance consulting and training.
>                                             http://dyomedea.com/english/
> ------------------------------------------------------------------------
> 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
>
>
>

>
>


YAHOO! GROUPS LINKS




Reply via email to