xsl-list
[Top] [All Lists]

Re: [xsl] Using variables in xpath attribute matches

2008-08-21 12:12:50
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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--