This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Dynamically selecting Attributes
- To: xsl-list at mulberrytech dot com
- Subject: RE: Dynamically selecting Attributes
- From: Jeff Saylor <JSaylor at wizardfinance dot com>
- Date: Fri, 13 Oct 2000 13:51:32 -0400
- Reply-To: xsl-list at mulberrytech dot com
Mike,
Works like a champ - thank you very much!
Cheers,
Jeff
-----Original Message-----
From: Kay Michael [mailto:Michael.Kay@icl.com]
Sent: Friday, October 13, 2000 12:30 PM
To: 'xsl-list@mulberrytech.com'
Subject: RE: Dynamically selecting Attributes
> I'm trying to select an attribute dynamically based on
> another attributes'
> value. For example, given:
>
> <find target="name" />
>
> <record id="100" name="something" location="somewhere" />
>
<xsl:template match="find">
<xsl:value-of select="//record/@*[name()=current()/@target]"/>
</xsl:template>
But take care if using namespaces.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list