xsl-list
[Top] [All Lists]

A Runtime Error: Cannot mix different threading models in document.

2003-06-17 20:22:32
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



<Prev in Thread] Current Thread [Next in Thread>