[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: <!-- hey --> 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]