This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: any thing like array
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] any thing like array
- From: Eric van der Vlist <vdv at dyomedea dot com>
- Date: Wed, 24 Jan 2001 16:28:33 +0100
- Organization: Dyomedea <http://dyomedea.com>
- References: <01C08645.FE4257C0@kapil>
- Reply-To: xsl-list at lists dot mulberrytech dot com
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