Subject: RE: [xsl] generating broken html? From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Fri, 23 Nov 2001 12:50:23 -0000 |
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: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] generating broken html?, Francis Norton | Thread | [xsl] WG: folder-trouble, Arend Vogtländer |
RE: [xsl] fill an array in javascri, Chris Bayes | Date | [xsl] WG: folder-trouble, Arend Vogtländer |
Month |