xsl-list
[Top] [All Lists]

RE: Attribute as a Variable

2002-10-11 13:50:53
You might try something like this ...

@*[name() = $currAttr]

Note: I didn't test this ...

Rich

-----Original Message-----
From: Suvarna Gadgil [mailto:suvarna(_at_)vergics(_dot_)com] 
Sent: Friday, October 11, 2002 1:48 PM
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com

 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




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