[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] JavaScript error in CDATA section: IE specific
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!!
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|