This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How can i convert the variable value into xpath
- From: Bagchi Ratul <bratul at baan dot com>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 7 Mar 2002 05:48:16 +0100
- Subject: RE: [xsl] How can i convert the variable value into xpath
- Reply-to: xsl-list at lists dot mulberrytech dot com
It's simple.If u put an Xpath within quotes then it will treat it as
string.So the work around is define the variable as
<xsl:variable name="bla bla"><xsl:value-of select="//a/c "/></xsl:variable>
Best of Luck.
-----Original Message-----
From: Gurpreet Singh [mailto:gpsingh@quark.co.in]
Sent: Thursday, March 07, 2002 9:38 AM
To: 'XSL-List@lists.mulberrytech.com'
Subject: [xsl] How can i convert the variable value into xpath
> Hi,
> 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.
>
>
>
> Gurpreet Singh
> QUARK Media House (I) Pvt. Ltd.
> A-45, Indl Area, Phase VIII-B,
> Mohali-160059.
> Tel : +91.172.257801-16(O) Ext : 9550
> +91.172.569799(R)
> Fax : +91.172.257414
> E-Mail : gpsingh@quark.co.in <mailto:gpsingh@quark.co.in>
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list