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: Re: Issue: redefinition without the original


> Another example.
>
> A.rng
> <grammar>
>   <define name="foo" combine="choice">
>     <element A/>
>   </define>
> </grammar>
>
> B.rng
> <grammar>
>   <include grammar="A.rng"/>
>   <include grammar="C.rng">
>     <define name="foo" combine="choice">
>       <element B/>
>     </define>
>   </include>
>   <include grammar="D.rng"/>
> </grammar>
>
> C.rng
> <grammar>
>   <define name="foo" combine="choice">
>     <element C/>
>   </define>
> </grammar>
>
> D.rng
> <grammar>
>   <define name="foo" combine="choice">
>     <element D/>
>   </define>
> </grammar>
>
>
>
> What will be the result of this definition? Will it be (A|B|D)? I guess
> so.

Yes.

> I wonder how we can formally define the semantics of the define/redefine.

I think we can define in terms of rules for performing a series of syntactic
transformations.

James




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


Powered by eList eXpress LLC