Subject: RE: Attribute as a Variable
From: "Richard Lander" <rlander@xxxxxxxxxxxxx>
Date: Fri, 11 Oct 2002 13:50:53 -0700
|
You might try something like this ...
@*[name() = $currAttr]
Note: I didn't test this ...
Rich
-----Original Message-----
From: Suvarna Gadgil [mailto:suvarna@xxxxxxxxxxx]
Sent: Friday, October 11, 2002 1:48 PM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
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
|