Re: [xsl] Attribute as a Variable

Subject: Re: [xsl] Attribute as a Variable
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Fri, 11 Oct 2002 22:38:39 +0200
<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


Current Thread