[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: any thing like array
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|