Subject: Re: Using variables in xpath attribute matches
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 21 Aug 2008 19:12:26 +0200
|
Matt Lee wrote:
<xsl:template name="get_attribute">
<xsl:param name="attribute"/>
<xsl:value-of select="@<<FIXME>>"/>
</xsl:template>
I would like to use the value of the attribute parameter passed into
this template as the attribute match expression in the inner most
select.
All you can do is
<xsl:value-of select="@*[local-name() = $attribute]"/>
--
Martin Honnen
http://JavaScript.FAQTs.com/
|