RE: Dynamically selecting Attributes

Subject: RE: Dynamically selecting Attributes
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 13 Oct 2000 17:30:22 +0100
> 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


Current Thread