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

generating broken html?

Subject: generating broken html?
From: Francis Norton <francis@xxxxxxxxxxx>
Date: Fri, 23 Nov 2001 12:14:36 +0000
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


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.