[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Why does Ie5b2 expect <xsl:comment> with <SCRIPT>?

Subject: Why does Ie5b2 expect <xsl:comment> with <SCRIPT>?
From: "Amit Rekhi" <amitr@xxxxxxxxxxxxx>
Date: Tue, 22 Dec 1998 14:02:09 +0530
xsl comment cdata
Hello,

I am in the process of running an XML file linked to a XSL which contained
<SCRIPT> as a part of the it's template. something like :-

1. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
2. <xsl:template match="/">
3. <HTML>
4.  <HEAD>
5.   <TITLE>Testing</TITLE>
6.  </HEAD>
7.  <SCRIPT language="JavaScript"><xsl:comment><![CDATA[
8.   function Testfunc()
9.   {
10.    /*some JavaScript code*/
11.  }
12.  </xsl:comment>]]></SCRIPT>
13.  <BODY>
14.     <B>Testing </B>
15.  </BODY>
16. </HTML>

If I do not include <xsl:comment> before the CDATA declaration
<![CDATA[  (See Line Number 7) the script does not work properly.
The browser screen comes blank and on including it the script code
runs smoothly !

Is it that having <xsl:comment> after <SCRIPT> is mandatory in
IE5b2?
If yes why?

It does make sense to include the <SCRIPT> content within a CDATA section
for well-formedness,
But why to have a <xsl:comment> before the <![CDATA[ declaration ?
(See Line Number 7)


Thanks for any replies,


AMIT




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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.