Donna, how did you get <xsl:comment> in the output? Just curiuos. I am getting <!--code:code--> ...
another variant: <xsl:copy-of>
xml:
<?xml version="1.0"?>
<root>
<!--code:code-->
<P>This is an HTML paragraph</P>
</root>
xsl:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="P">
<xsl:copy-of select="."/>
</xsl:template>
<xsl:template match="comment()">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>
output:
<!--code:code-->
<P>This is an HTML paragraph</P>