RE: [xsl] How can i convert the variable value into xpath

Subject: RE: [xsl] How can i convert the variable value into xpath
From: Bagchi Ratul <bratul@xxxxxxxx>
Date: Thu, 7 Mar 2002 05:48:16 +0100
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@xxxxxxxxxxx]
Sent: Thursday, March 07, 2002 9:38 AM
To: 'XSL-List@xxxxxxxxxxxxxxxxxxxxxx'
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@xxxxxxxxxxx <mailto:gpsingh@xxxxxxxxxxx>
> 
> 

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

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


Current Thread