This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] HTML comment within a template
W. Borgert wrote:
CDATA is your friend. IIRC, something like this works:
<xsl:template name="user.head.content">
<script language="JavaScript" type="text/javascript"><![CDATA[<!--
var foo='bar';
//-->]]></script>
</xsl:template>
Your example works, but when I change it because I needed something like
this:
<xsl:template name="user.head.content">
<![CDATA[<!--
hey
-->]]>
</xsl:template>
it will output this:
<!--
hey
-->
But I combined the two answers in this thread.
Thanks for your help
--Jacob
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.