xsl-list
[Top] [All Lists]

[xsl] variable attribute value

2008-03-29 13:57:11
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[(_at_)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 ?




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>