Re: [xsl] XSLT for usable yet valid XHTML

Subject: Re: [xsl] XSLT for usable yet valid XHTML
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 6 Apr 2005 16:47:09 +0100
> 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:

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).


This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:

Current Thread