xhtml - xml declaration & IE 4.5 Mac

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.


Jim
-- 
James Comas, Assistant Professor of This, That, and the Other
Department of English
University of Missouri-Columbia
<http://web.missouri.edu/~engjnc/>
----------------------------------

Received on Saturday, 1 January 2000 12:16:55 UTC