replacing a tag element and copying the contents into it in

Hi ,

I am trying to do the following manipulation in XSL2.0  copying the
contents of element tag into the new  replaced tag element    so with
"cat" i want it  replaced  with following tag



BEFORE  --- <cat> blah blah </cat>

AFTER ---<div class=cat blah blah ></div>

using the following xsl to do the above  - doesn't appear to do the substitude

Any ideas why it's not ... ???


<xsl:template match="cat">
<xsl:text><![CDATA["<DIV class="]]>
 <xsl:copy-of select="@*"/>
<xsl:copy-of select="node()"/>
</xsl:text>
<xsl:text><![CDATA[">"]]></xsl:text>
     <xsl:copy><![CDATA["."/>]]></xsl:copy>
     <xsl:text><![CDATA["</DIV"]]></xsl:text>
</xsl:template>

Received on Saturday, 1 October 2005 02:28:27 UTC