This is one of those cases where you might have to resort to using disable-output-escaping. It's not a nice feature, not all processors support it, and it only works if you are serializing the output. But it allows you to do:
<xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text>
<xsl:copy-of select="....."/>
<xsl:text disable-output-escaping="yes">]]></xsl:text>
It's often handy feature if you need to do "dirty" programming like this.
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference