Subject: RE: [xsl] 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 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] How to see the output of , Hardison Leif | Thread | [xsl] Create personal functions, Andrea Racca |
RE: [xsl] How to see the output of , Hardison Leif | Date | Re: [xsl] Add attribute to all node, G. Ken Holman |
Month |