This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How can i convert the variable value into xpath
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Sat, 9 Mar 2002 14:59:54 -0000
- Subject: RE: [xsl] How can i convert the variable value into xpath
- Reply-to: xsl-list at lists dot mulberrytech dot com
> > How can i convert the variable value into xpath ??
> > e.g . a variable var has value //a/c
> > now if i write <xsl:value-of select="$var"/>
> > i am getting the value //a/c and not the value of xpath //a/c.
You can't do this in standard XSLT, but some processors (Saxon, Xalan, ...)
offer an xx:evaluate() extension function.
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list