[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] XSLT variable eval
Subject: RE: [xsl] XSLT variable eval
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 1 Dec 2004 13:43:33 -0000
|
> <xsl:param name="username"/>
> <!-- .... -->
>
> <xsl:template match="btr:attribute">
> <xsl:attribute name="{@as}"><xsl:value-of
> select="${@name}"/></xsl:attribute>
> ^^^^^^
> - how eval this variable?
CHange the param to
<xsl:param name="params">
<username>....</username>
</xsl:params>
and evaluate it as $params/*[name()=current()@name]
Michael Kay
http://www.saxonica.com/
|