Subject: Re: any thing like array
From: Eric van der Vlist <vdv@xxxxxxxxxxxx>
Date: Wed, 24 Jan 2001 16:28:33 +0100
|
kapil wrote:
>
> hello friends
> is there is any thing like array in xsl.
No, not really, but there are node sets which are much more than arrays
;=)
If you want to build a node set in a variable, you will often need a
proprietary extension to transform result tree fragments into node sets,
though:
<xsl:variable name="array">
<val>1<val>
<val>2<val>
<val>3<val>
<val>...<val>
<val>n<val>
</xsl:variable>
$array is a result tree fragment and you'll need a proprietary extension
to convert it into $array-ns which can be accessed using XPath (for
instance) "$array-ns/val[2]".
Hope this helps.
Eric
> thanks in advance
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
--
------------------------------------------------------------------------
Eric van der Vlist Dyomedea http://dyomedea.com
http://xmlfr.org http://4xt.org http://ducotede.com
------------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|