[xsl] variable attribute value

Subject: [xsl] variable attribute value
From: Mansour <mansour77@xxxxxxxxx>
Date: Sat, 29 Mar 2008 17:55:46 -0300
Is there a way to set the value of the attribute fro ma variable ?

for example:

<xsl:variable name="var"   select="@name" />
<xsl:apply-template select="someTag[@attr='$var'] />

I am trying it and it's not working. When I remove the variable $var and specify a value, it works fine.
I tried using {$var}. Nothing worked.


Any ideas ?

Current Thread