W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2001

Re: OT: XHTML 1.0 vs. HTML 4.01 in MSIE

From: Stephan Engelke <engelke@gmx.net>
Date: Wed, 10 Jan 2001 11:01:28 +0100
Message-ID: <14940.13048.396606.507069@sun28.math.uni-hamburg.de>
To: HTML Tidy discussion list <html-tidy@w3.org>
Klaus Johannes Rusch writes:

> If you use XHTML as HTML, with a MIME type of text/html, the
> built-in entities of the browser can be used.

> When you use XHTML as XML, with a MIME type of text/xml or
> application/xml, all entities would need to be defined (no other XML
> processor would process an XML document with something like &auml;
> either)

How do I influence whether the MIME type text/html or text/xml is
used? Isn't that what the content-type header is used for?  I
configured my tidy to output xhtml but *not* to produce xml.
The document in question starts like this:

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml">
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />

I checked the tidy-configurarion file and noticed that add-xml-decl
has been turned on.  Will it be sufficient to remove the <?xml ...>
declaration at the very beginning of the file go get the file to
render correctly in MSIE?  

On the other hand the XHTML doc at http://www.w3.org/TR/xhtml1/ says
(just below the first example):

Note that in this example, the XML declaration is included. An
XMLdeclaration like the one above is not required in all XML
documents. XHTML document authors are strongly encouraged to use XML
declarations in all their documents. Such a declaration is required
when the character encoding of the document is other than the default
UTF-8 or UTF-16.

Are there any MSIE specific mailing lists or newsgroups I could take
this problem to?  They may have a FAQ which covers this..

Cheers -- Stephan
Stephan Engelke                                                engelke@gmx.net
                                  *** Programming ... by trial and reboot. ***
Received on Wednesday, 10 January 2001 05:01:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:49 UTC