XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Luke TurnerSubject: 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

Posttop
Tony LavinioSubject: 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>

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.