W3C home > Mailing lists > Public > www-html@w3.org > January 2000

xhtml - xml declaration & IE 4.5 Mac

From: James Comas <ComasJ@missouri.edu>
Date: Sat, 01 Jan 2000 11:16:35 -0600
To: <www-html@w3.org>
Message-ID: <B493928F.1A92%ComasJ@missouri.edu>
Section 3.1.1 of PR-xhtml1-19991210 contains the following recommendation
regarding the use of XML declarations:

> Here is an example of a minimal XHTML document.
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE html
> PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/1999/PR-xhtml1-19991210/DTD/xhtml1-strict.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
> <head>
> <title>Virtual Library</title>
> </head>
> <body>
> <p>Moved to <a href="http://vlib.org/">vlib.org</a>.</p>
> </body>
> </html>
> Note that in this example, the XML declaration is included. An XML
> declaration 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.

Caveat: the XML declaration causes IE 4.5 (Mac) to render the document as
text rather than as html.

James Comas, Assistant Professor of This, That, and the Other
Department of English
University of Missouri-Columbia
Received on Saturday, 1 January 2000 12:16:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:40 GMT