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

RE: how to view html not xml/xsl?

Subject: RE: how to view html not xml/xsl?
From: "Robert Koberg" <rob@xxxxxxxxxx>
Date: Fri, 13 Jun 2003 14:15:59 -0700
document.documentelement.innerhtml
Hi,

Another way to do it that is more valueable if you need to see the *real*
/html/ that IE is actually using is to create the following somefile.url and
drop it into c:/Documents and Setting/UserName/Favorites/Links directory.
The a 'link' button will show up in your browsers menubar.

Here is the code (The extra linebreaks are there to indicate only what one
line should contain to avoid wrapping problems. You should have 5 lines in
the final somefile.url):

[DEFAULT]

BASEURL=http://localhost:8080

[InternetShortcut]

URL=javascript:(function(){%20function%20htmlEscape(s){s=s.replace(/&/g,'&am
p;');s=s.replace(/>/g,'&gt;');s=s.replace(/</g,'&lt;');return%20s;}%20x=wind
ow.open();%20x.document.write('<pre>'%20+%20htmlEscape('<html>\n'%20+%20top.
document.documentElement.innerHTML%20+%20'\n</html>'));%20x.document.close()
;%20})();

Modified=B01FA2469552C20161



The important thing here is the 'top.document.documentElement.innerHTML' and
indicates you want the main browser window results. Say you need to get the
results of a frame in a frameset:



[DEFAULT]

BASEURL=http://localhost:8080

[InternetShortcut]

URL=javascript:(function(){%20function%20htmlEscape(s){s=s.replace(/&/g,'&am
p;');s=s.replace(/>/g,'&gt;');s=s.replace(/</g,'&lt;');return%20s;}%20x=wind
ow.open();%20x.document.write('<pre>'%20+%20htmlEscape('<html>\n'%20+%20top.
tool.document.documentElement.innerHTML%20+%20'\n</html>'));%20x.document.cl
ose();%20})();

Modified=B01FA2469552C20161


The important thing here is the
'top.tool.document.documentElement.innerHTML' which indicates you want the
tool frame.

It is amazing how different the html that MS uses from what you give it :)

Best,
-Rob



> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-
> list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of David Carlisle
> Sent: Friday, June 13, 2003 1:46 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> 
> 
> 
>   I'm interpolating here by assuming your using an IE browser to display
>   the transformed XML.  If so, the only way I know to see the actual
>   transformed HTML is through some Javascript magic using the following
>   two functions:
> 
> 
> 
> if you download MS's xmltools for IE package then IE just gets a right
> button menu option "View XSL output" (and another one: Validate XML)
> 
> David
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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


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.