|
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] help on attribute name, Aron Bock | Thread | RE: [xsl] help on attribute name, Wendell Piez |
| RE: [xsl] help on attribute name, Raman Kannan | Date | RE: [xsl] How can I sort this?, Aron Bock |
| Month |