[xsl] <![CDATA[ in Sablotron Parser

Subject: [xsl] <![CDATA[ in Sablotron Parser
From: "Tim Watts" <timw@xxxxxxx>
Date: Wed, 28 Feb 2001 12:55:38 +1100
Hi,

There is a problem in the *Sablotron* Parser when using <![CDATA[

In the header of the HTML files which I am creating with XSL I want to use
javascript in the final comment tags.

By using XSL
<script type="text/javascript" language="javascript">
<![CDATA[
<!-- comments here -->
<!--
function someJavascript() {
		if (something) {
			thenDo.this();
		}
}
-->
]]
<script>

I get HTML
<script type="text/javascript" language="javascript">
&lt;-- comments here -->
&lt;--
function someJavascript() {
		if (something) {
			thenDo.this();
		}
}
-->
<script>

Rather than HTML
<script type="text/javascript" language="javascript">
<;-- comments here -->
<;--
function someJavascript() {
		if (something) {
			thenDo.this();
		}
}
-->
<script>

Can anyone help?

(I could just put the <-- comments --> outside the <![CDATA[ ]] section as
&lt;-- coments --&gt; but I would rather not have to :-) )

Tim Watts


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread