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


Quoting Jacob Emcken <jacob@emcken.dk>:
> I want to make a template for the html chunker that makes the following 
> output:
> 
> <!--
..
> But <!-- are parsed as xsl comments and all my workarounds have resulted 
> in output like the following:
> 
> &lt;!--

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>

Cheers, WB

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]