Re: [xsl] XSLT for usable yet valid XHTML

Subject: Re: [xsl] XSLT for usable yet valid XHTML
From: Robert Koberg <rob@xxxxxxxxxx>
Date: Wed, 06 Apr 2005 08:49:24 -0700
David Carlisle wrote:
actually most current browsers (IE, mozilla, opera, etc) can, and will,
correctly parse XHTML (and any XML) If it is served with an XML mime
type rather than an html one. IE (but not the others) then needs a
client side stylesheet to style the xhtml<snip/>



no it doesn't. See:


http://livestoryboard.com

that is an example which confirms what I said, not contradicts it.
It is sent as html:

text/html; charset=UTF-8

so (presumably) uses mechanisms to ensure that the XML syntax is close
enough to HTML to get past a browser's lax html parser.

The comment of mine that you quote refers to sending the file with an XML
mime type when it will be parsed with a real XML parser (msxml in IE and
I think an expat derivative in mozilla).


I suppose I should have snipped more. I was referring to the part about needing a client side transformation.

best,
-Rob



David

Current Thread