Re: [xsl] MSXML / NBSP problem and resolution

Subject: Re: [xsl] MSXML / NBSP problem and resolution
From: "Michael H. Semcheski" <mhs-list@xxxxxxxxx>
Date: Thu, 07 Nov 2002 11:27:50 -0500

If so, instead of using something like <xsl:output method="html"
version="1.0" encoding="UTF-8" indent="yes"/> in your xsl, try using
something like

<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"
<xsl:template match="*">
<meta content="text/html; charset=ISO-8859-1"

Right, just to follow up, using indent="yes", in my testing, sometimes adds whitespace where it will change the browser's rendering of the page (only if the output method="xml", for method="html", does not seem to be a problem). I was wrestling over this yesterday, and basically an html document that has:
<img name="foo" src="foo.gif" width="10" height="10"/><img name="bar" src="bar.gif" width="10" height="10"/>

will display differently than:

<img name="foo" src="foo.gif" width="10" height="10"/>

<img name="bar" src="bar.gif" width="10" height="10"/>

The whitespace seems to push them apart, and indent="yes" can introduce this whitespace.

I realize that this is getting off-topic, so I'll cut it here.

XSL-List info and archive:

Current Thread