This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Dynamically selecting Attributes
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Dynamically selecting Attributes
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Fri, 13 Oct 2000 17:30:22 +0100
- Reply-To: xsl-list at mulberrytech dot com
> 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