Change:
result = XMLDoc.documentElement.transformNode(XSLDoc);
to
result = XMLDoc.transformNode(XSLDoc);
Max
-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Meir
Sent: Sunday, June 16, 2002 9:36 PM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject: trying to load xml and xsl nothing happing
Hello list ,
i have this code :
var XMLDoc;
var XSLDoc;
var result ;
XMLDoc=new ActiveXObject('Msxml2.DOMDocument.3.0');
XMLDoc.async = false;
XSLDoc=new ActiveXObject('Msxml2.DOMDocument.3.0') ;
XSLDoc.async = false; XMLDoc.load("flashCTL.xml");
XSLDoc.load("flashCTL.xsl");
result = XMLDoc.documentElement.transformNode(XSLDoc);
alert(result);
Tree.innerHTML = result;
i keep geting <?xml version="1.0" encoding="UTF-16"?> , why?
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|