OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

relax-ng message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: General concern about inter-grammar references


Kawaguchi-san wrote: 

> It might be useful to name a included grammar and refer to it by using
> the name.
> 
> 
> <?xml version="1.0"?>
> <grammar>
> 
>   <grammarRef name="table" href="..."/>
>   <grammarRef name="list" href="..."/>
>   
>   <define name="foo">
>     <choice>
>       <ref name="xyz" grammar="table" />
>       <ref name="abc" grammar="list" />
>     </choice>
>   </define>
> </grammar>

Interesting possibility.  I would like to think about this for a while.  
 
> If there are multiple <grammarRef> with the same name, then only the
> first one is loaded and the rest is ignored.

Alternatively, we can prohibit more than one <grammarRef> per name.

Cheers,

Makoto


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC