[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Navigationg thru XML Elements and manipulating them using XSLT


Subject: RE: [xsl] Navigationg thru XML Elements and manipulating them using XSLT
From: "bryan" <bry@xxxxxxxxxx>
Date: Tue, 12 Nov 2002 10:06:35 +0100


>Arrays are not known in XSLT. You only can create Javascript code from 
>the XSLT.

>Example:

><xsl:template match="Range">
>   <xsl:apply-templates select="From"/>
></xsl:template>

><xsl:template match="From">
>   <xsl:text/>Array[<xsl:value-of select="position()"/>]=<xsl:text/>
>   <xsl:value-of select="."/>
></xsl:template>

should be amended as javascript begins counting from 0, <xsl:value-of
select="position() - 1"/>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread