xsl-list
[Top] [All Lists]

Re: [xsl] Dynamic attribute selection

2008-09-05 09:23:43
<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[(_at_)*[name() = $t]]/@y"



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

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>