RE: [xsl] help on attribute name

Subject: RE: [xsl] help on attribute name
From: "Andrew Welch" <ajwelch@xxxxxxxxxxxxxxx>
Date: Tue, 24 May 2005 14:34:06 +0100
> 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

Current Thread