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

RE: generating broken html?

Subject: RE: generating broken html?
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Fri, 23 Nov 2001 12:50:23 -0000
broken html
It's possible that with MSXML you are serializing using the DOM serializer,
not the XSLT serializer, which would mean the method="html" is ignored. This
would account for the "prettier" indentation - it's hard to produce really
nice indented output in HTML because there are so many places where
whitespace is significant.

Mike Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Francis
> Norton
> Sent: 23 November 2001 12:15
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  generating broken html?
>
>
> Hi,
>
> I'm trying to reformat a substantial dreamweaver-generated
> HTML file by
> using tidy to clean it up and convert it to XML, and then the
> following
> trivial transform:
>
> <?xml version="1.0"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> 	<xsl:output method="html" indent="yes"/>
> 	<xsl:template match="/">
> 		<xsl:copy-of select="." />
> 	</xsl:template>
> </xsl:stylesheet>
>
> to turn it back into nicely indented HTML.
>
> When I do this transform using msxsl.exe with any version of
> msxml (3.0
> or 4.0) the HTML is beautifully indented but doesn't work with IE5.5.
> The problems I've identified so far are to do with closing empty
> elements that are perhaps not normally empty - eg:
>
> <script type="text/javascript" language="Javascript"
> src="shared/js/userconfig1.js"/>
>
> and
>
> <div class="titlebar" id="titlebar"/>
>
> - both of these need to be closed as
>
> 	></script>
>
> and
>
> 	></div>
>
> to work.
>
> Once I've fixed these the browser no longer shows as blank,
> but I still
> can't see any text.
>
> Saxon gives me working HTML but the indentation is not as
> pretty and is
> so different (eg line breaks) that it is very hard to diff the two.
>
> Has anyone had similar problems, and if so did they come up with an
> msxsl solution or did they find another xslt processor which could do
> similar indenting?
>
> Francis.
>
>
>
>  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.