When I try to do <xsl:attribute name="{$id}">...
I get on that line the following error:
Column #29; Illegal value used for attribute name:
You can't use AVTs here, if you want to conditionally create an
attribute I think the only was is to use:
<xsl:choose>
<xsl:when test="$id = 'foo'">
<xsl:attribute name="foo">...
</xsl:when>
<xsl:when test="$id = 'bar'">
<xsl:attribute name="bar">...
</xsl:when>
</xsl:choose>
cheers
andrew
--~------------------------------------------------------------------
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>
--~--