This is the mail archive of the xsl-list@mulberrytech.com mailing list .


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

<![CDATA[ in Sablotron Parser


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


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