OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]