I'm trying to carry over some XML from one document to another, but I want it to be commented out when it gets there. So I want to do something like this:
<xsl:template name="process">
<figure>
<xsl:comment>
<xsl:copy />
</xsl:comment>
</figure>
</xsl:template>
When I run it using a straight Java XSLT processor, I get something along the lines of:
<figure>
<!--
-->
</figure>
The weird thing is that if I run it WITHHOUT the comment object, as in:
<xsl:template name="process">
<figure>
<xsl:copy />
</figure>
</xsl:template>
The content comes through just fine.
Any ideas? I thought maybe you can't use a element in a comment but I looked it up and it's supposed to be fine.