|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: help on attribute name
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








