[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

A Runtime Error: Cannot mix different threading models

Subject: A Runtime Error: Cannot mix different threading models in document.
From: "Jason" <estudio@xxxxxxxxx>
Date: Wed, 18 Jun 2003 11:22:32 +0800
innerhtml runtime error
Hi all,
	I using a html page to startup a xslt transformation, below is
the javascript included in the HTML:

<script language="JScript">
function LoadXML(inFilePath){
	var s;
	xmlDoc.async = false;
	xslDoc.async = false;
	if (inFilePath=="") return false;
	xmlDoc.src=inFilePath;
	xslDoc.src="SortingTable.xsl";
	Translate();	
}
function Translate(){
	result.innerHTML = xmlDoc.transformNode(xslDoc);
}
</script>
<!-- the XML-island of the XML and XSL file -->
<XML ID="xmlDoc"></XML>
<XML ID="xslDoc"></XML>
<div id="result"></div>

it is running ok on most computer(with MS-IE6),but some time cause 
"runtime error : Cannot mix different threading models in document."
error on following line
result.innerHTML = xmlDoc.transformNode(xslDoc);

I don't known WHY cause this error, (even I don't know what environment
is on that computer) can anybody give me some suggestion for it?

can change the code to : ?
var xmlDoc = new ActiveXObject("MSXML2.FreeThreadedDOMDocument");
Var xslDoc = new ActiveXObject("MSXML2.FreeThreadedDOMDocument");	
	

Thanks
Jason


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.