This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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:
&lt;!--
hey
--&gt;

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/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]