[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Displaying XSLT XML result in IE ?

Subject: [xsl] Displaying XSLT XML result in IE ?
From: "Mike Spencer" <spencer@xxxxxxxxxxx>
Date: Sat, 24 Jan 2004 09:19:39 -0800

My question here is: 

How can I get the XML output resulting from the "XML-XML" XSLT
transformation to display in the browser.
In my application I have the following HTML page with embedded Javascript:

  <SCRIPT language = "javascript">
     function init()
        var srcTree = new ActiveXObject("Msxml2.DOMDocument.4.0");
        srcTree.validateOnParse = true;
        srcTree.resolveExternals = false;
        var xsltTree= new ActiveXObject("Msxml2.DOMDocument.4.0");
        xsltTree.validateOnParse = true;
        xsltTree.async = false;
        xsltTree.resolveExternals = false;
        resTree.innerHTML= srcTree.transformNode(xsltTree);
<BODY onload = "init()" >
   <div id="resTree"></div>

I am using IE6 with MSXML4. Also as illustrated above both the xml file and
xsl file reside on a remote file server.
The XSL is an XML to XML transformation. When I run the above, the XML does
not display in the browser, only the data content.
How can I get the XML resulting from the XSLT transformation to display in
the browser.
I have tested the XSLT offline using XML Spy and it works fine, and also
produces a browser view showing the output XML. 
Help would be much appreciated.
I have also tried using the MSXML SXLT viewer which is a right click add-on,
which kind of works to view the converted xml, but the result is not wrapped
or formatted and you cant save it, which is my main requirement.

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

Current Thread