Re: [xsl] Dynamic attribute selection

Subject: Re: [xsl] Dynamic attribute selection
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Fri, 5 Sep 2008 14:23:22 +0100
> <xsl:template name="MY_TEMPLATE">
>        <xsl:param name="t" />
>        <xsl:value-of select="p/c[$t]/@y]" />
> </xsl:template>
>
> However that obviously doesn't work.

how about:

select="p/c[@*[name() = $t]]/@y"



-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread