xsl-list
[Top] [All Lists]

Re: Attribute as a Variable

2002-10-11 13:38:39
<xsl:value-of select="$currNode/@*[name() = $currAttr]"/>

Regards,

Joerg

Suvarna Gadgil wrote:
 I dont know the attribute name beforehand but is avaiable as a variable 
$currAttr.

I tried something like this <xsl:value-of select="$currNode/attribute[$currAttr]"/>
but does not work.

What is the right way to do this in XSL.
-thanks for the help.


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