This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
JavaScript error in CDATA section: IE specific
- To: "XSL-List (E-mail)" <XSL-List at mulberrytech dot com>
- Subject: JavaScript error in CDATA section: IE specific
- From: Charlie Kaiman <ckaiman at i3solutions dot com>
- Date: Fri, 7 Apr 2000 12:09:46 -0400
- Reply-To: xsl-list at mulberrytech dot com
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 < strXNode.length; i++)
{
alert(strXNode);
}
}
]]></SCRIPT>
Note the "<"
in the script???? Is this a bug, or am I doing something wrong? Has
anyone experienced the same problem?
Thanks!!