xsl-list
[Top] [All Lists]

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

2010-10-08 14:30:37
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>