This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
<![CDATA[ in Sablotron Parser
- To: "XSL Mailing List \(E-mail\)" <XSL-List at lists dot mulberrytech dot com>
- Subject: [xsl] <![CDATA[ in Sablotron Parser
- From: "Tim Watts" <timw at 3d3 dot com>
- Date: Wed, 28 Feb 2001 12:55:38 +1100
- Reply-To: xsl-list at lists dot mulberrytech dot com
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">
<-- comments here -->
<--
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
<-- coments --> but I would rather not have to :-) )
Tim Watts
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list