This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Variables in XPath expressions
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Variables in XPath expressions
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Wed, 29 Mar 2000 08:58:09 +0100
- Reply-To: xsl-list at mulberrytech dot com
> <xsl:variable name="i">
> <xsl:value-of select="el1/aPosition"/>
> </xsl:variable>
>
> <xsl:value-of select="el1/*[position()={$i}]"/>
>
Write <xsl:value-of select="el1/*[position()=$i]"/>
or <xsl:value-of select="el1/*[number($i)]"/>
You should never have curly brackets inside an XPath expression.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list