Subject:MSXML problem Author:Luke Turner Date:24 Aug 2005 07:19 AM
hi
When I process my page with the built in processor it the javascript comes across undamaged (it is in a CDATA block), however when I use MSXML it replaces everything with the html equivilant and if I use .NET it even replaces all of the quotes. Any simple steps to resolve this?
cheers
Subject:MSXML problem Author:Tony Lavinio Date:25 Aug 2005 10:14 AM
I assume you're embeddeding your script code in your XSLT?
There are several potential solutions:
1. Don't embed it. Call it with something like this:
<script language="JavaScript" type="text/javascript" src="whatever.js"></script>
You could even put this in the <head></head> section.
2. You could wrap it in a comment block like this:
<script language="JavaScript" type="text/javascript">
<!--
...javascript code goes here...
//-->
</script>