[relaxng-user] examples of application of interleave?

David Tolpin dvd at davidashen.net
Tue Sep 30 19:50:59 ICT 2003


> On Tue, 2003-09-30 at 16:23, David Tolpin wrote:
> > Hi,
> > 
> > I have difficulty trying to find real-life examples of application of 'interleave'.
> > Where can I look at a schema with it?
> 
> Any document oriented application (such as XHTML 2.0 [1]) contain good
> examples, but I do believe that data oriented applications should take
> advantage of this feature too even though there are probably less
> examples in this domain.
> 
> [1] http://www.w3.org/TR/xhtml2/xhtml20_relax.html

The only use for interleave in XHTML 2.0 is to combine header.contents from various
modules; and in this context there is no order significance within the patterns
to be combined. This part can be done easily without interleave.

I am trying to solve a problem for which every construct must be converted into a
set of productions and am having difficulty translating interleave into a set
of productions in general case. It is possible and easy in general, but complicates
my particular algorithm. 

I am considering dropping interleave and trying to find out what kind of grammars
will be beyond the scope. I haven't yet seen one.

David


More information about the relaxng-user mailing list