Subject: Re: How can i convert the variable value into xpath
From: Mike Brown <mike@xxxxxxxx>
Date: Wed, 6 Mar 2002 22:02:10 -0700 (MST)
|
> 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.
If you create a string object that you want to be evaluated as an XPath
expression, well, that is not something you can do in standard XSLT. Some XSLT
processors have an extension function that allow this; I suggest you check the
documentation for the processor you are using.
- Mike
____________________________________________________________________________
mike j. brown | xml/xslt: http://skew.org/xml/
denver/boulder, colorado, usa | personal: http://hyperreal.org/~mike/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
Gurpreet Singh - Wed, 6 Mar 2002 23:23:52 -0500 (EST)
- Mike Brown - Wed, 6 Mar 2002 23:58:17 -0500 (EST) <=
- Anna Urra - Thu, 7 Mar 2002 06:12:47 -0500 (EST)
Bagchi Ratul - Wed, 6 Mar 2002 23:50:51 -0500 (EST)
Laura Jenkins - Fri, 8 Mar 2002 04:37:24 -0500 (EST)
|
|