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

RE: How to see the output of XSL in IE6 for debuging?

Subject: RE: How to see the output of XSL in IE6 for debuging?
From: "Hansen, John" <John.Hansen@xxxxxxxxxx>
Date: Thu, 29 Apr 2004 06:05:08 -0700
view xsl output
When you install the xml tools package for IE as others here have
suggested (which I highly recommend) you get a couple html files, one of
which looks like this:

<HTML>
<TITLE>XSL Transformation Ouput</TITLE>
<BODY>
<SCRIPT language="javascript" defer=true>
var win = external.menuArguments;
var doc = win.document;
var xmldoc = doc.XMLDocument;
var xsldoc = doc.XSLDocument;
if (!xmldoc)
{
    win.alert("Not XML Document.");
}
else
{
   try {
      var srcwin =
win.open("about:blank","","resizable=yes,scrollbars=yes");
      srcwin.document.write("<html><title>XSL Transformation
Ouput</title><body style=\"font:x-small 'Verdana';\"><nobr
id=x>working...</nobr></body></html>\n");
      srcwin.document.body.all("x").innerText = xmldoc.transformNode(
xsldoc);
   } catch (e) {
      alert( "Error in 'View XSL Transform': "+e.description);      
   }
}
</SCRIPT>
</BODY>
</HTML>


So as you can see here the View XSL Output tool simply uses
doc.XMLDocument and doc.XSLDocument and outputs the results of
doc.XMLDocument.transformNode(doc.XSLDocument) to a new window.  If your
output something other than HTML you'll have to View Source on the new
window to see the actual output from the transformation.

John Hansen

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.