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: restrict <interleave>


Kohsuke KAWAGUCHI wrote:

> For example, the following pattern still satisfies the imposed restriction
> but it still causes a combinatory explosion.
> 
> <element>
>   <interleave>
>     <ref name="a"/>
>     <ref name="b"/>
>     ...
>     <ref name="z"/>
>   </interleave>
> </element>

No, it does not.  We only have to create 27 automata.  By examining a start 
tag, we can pick one of them.

Kohsuke KAWAGUCHI wrote:

> Also, I think it would be nice if we can allow the following pattern (in
> the normalized form)
> 
> <element>
>   <group>
>     <!-- interleaved element contents -->
>     <interleave>
>       <element A/>
>       <element B/>
>       ..
>     </interleave>
>     <!-- a big tree of attributes -->
>     <choice>
>       <attribute A/>
>       <attribute B/>
>     </choice>
>   </group>
> </element>

Good point.  In this case, handling of attributes is independent 
from that of elementts 

Cheers,

Makoto


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


Powered by eList eXpress LLC