xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

JavaScript error in CDATA section: IE specific


Subject: JavaScript error in CDATA section: IE specific
From: Charlie Kaiman <ckaiman@xxxxxxxxxxxxxxx>
Date: Fri, 7 Apr 2000 12:09:46 -0400

I'm wondering if someone has experienced a problem with IE, where a character in a CDATA section is returned as an entity reference????  Here's my _javascript_ code (wrapped in a CDATA section, in an XSL Style Sheet):
 
<SCRIPT LANGUAGE="_javascript_">
<![CDATA[
 
function xmlParse() {
 source = document.XMLDocument;
 xNode = source.getElementsByTagName("data_x").item(0);
 strXNode = xNode.text;
 for (i = 0; i < strXNode.length; i++) {
  alert(strXNode);
 }
}
]]></SCRIPT>
 
I am getting an error due to the script being parsed out as:
 
<SCRIPT LANGUAGE="_javascript_">
<![CDATA[
 
function xmlParse() {
 source = document.XMLDocument;
 xNode = source.getElementsByTagName("data_x").item(0);
 strXNode = xNode.text;
 for (i = 0; i &lt; strXNode.length; i++) {
  alert(strXNode);
 }
}
]]></SCRIPT>
 
Note the "&lt;" in the script????  Is this a bug, or am I doing something wrong?  Has anyone experienced the same problem?  Thanks!!

Current Thread
Keywords
xsl
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor