You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Jens Schaefers <sc...@adesso.de> on 2001/04/20 15:39:45 UTC

Adding an attribute to an existing element

Hi,

I have the following problem:

<xsl:attribute name="Key">0</xsl:attribute>

This should add an attribute named "Key" with the value "0" to the
element "SystemChannelList" in the target document (output: xml). I've
tried xsl:template and xsl:for-each to select the "SystemChannelList"
node.

But whatever I try, I always get the following error (with Xalan-J
1.2.2, Xalan-J 2.0.0, Xalan-J 2.0.1):

Key has an illegal attribute: {1}

What am I doing wrong?

Jens