Subject: Re: [xsl] How to implement a sequence of sequences? From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 08 Oct 2010 21:34:47 +0100 |
Hi,
I am not used to do XSLT 2.0.
While the Pattern of a xsl:key has more options in 2.0 than in XLST 1.0 http://www.w3.org/TR/xpath20/#prod-xpath-KindTest
it seems not to allow to match a sequence.
Is it possible to "store" a sequence in a node?
I tried <xsl:variable name="s"> <xsl:sequence select="for $v in 1 to 10 return $v"/> </xsl:variable> but then $s is considered as string "1 2 3 4 5 6 7 8 9 10" and not as sequence.
In case you could store a sequence in a node (how?) you could have a variable holding all sequences in nodes like this (in $seqs):
<xsl:variable name="seqs"><seq>(1,2,3)</seq><seq>(4,5,6)</seq><seq> (7,8,9)</seq></xsl:variable>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to implement a sequen, Hermann Stamm-Wilbra | Thread | Re: [xsl] How to implement a sequen, Mukul Gandhi |
Re: [xsl] How to implement a sequen, Hermann Stamm-Wilbra | Date | [xsl] xml elements as output after , sudheshna iyer |
Month |