Re: [xsl] How to implement a sequence of sequences?

Subject: Re: [xsl] How to implement a sequence of sequences?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 08 Oct 2010 20:30:28 +0100
On 08/10/2010 20:23, Costello, Roger L. wrote:
However, I really need sequences of sequences.


What's the best way to implement sequences of sequences in XSLT 2.0?

xpath 2.1 draft proposes function items, which makes it easy to have a sequence of references to sequences, but as you say in xpath 2 it isn't supported by the data model.



Has anyone already implemented some XSLT functions that provide sequences of sequences?

You can't easily implement functions that use a datatype that doesn't exist.



options are


1) wait for 2.1

or

2) use a single sequence, using marker items (or fixed length) to denote where the subsequences stop and finish.

or

3

serialise the sequences to an xml structure and then use xml tree nesting to model sequences of sequences.

or ...

David

Current Thread