W3C home > Mailing lists > Public > www-html@w3.org > March 1999

Re: XHTML <?XML?>? +browsers

From: Chris Maden <crism@oreilly.com>
Date: Mon, 8 Mar 1999 09:47:51 -0500 (EST)
Message-Id: <199903081447.JAA13956@ruby.ora.com>
To: www-html@w3.org
[Xavier Plantefeve]
> 1) As I'm not the greatest DTD reader in town, I'm not quite sure:
>    xHTML is an XML application, isn't it? As such, Isn't it
>    mandatory to put the <?XML?> header before the <!DOCTYPE>? The
>    Validator doesn't care at all about it...

This is actually orthagonal to reading the DTD.

You do not need an XML declaration (which uses lowercase: <?xml ...?>)
in every XML document.  It is necessary to use one to declare the
encoding, however, if the document is not represented as UTF-8 or
UTF-16; since you are French, I suspect you'll be using characters
beyond the 0-127 range.  If the document is stored as UTF-8, you can
omit the declaration, but if you're using ISO 8859-1 (Latin 1), you'll
need to include a declaration:

<?xml version="1.0" encoding="ISO-8859-1"?>

See 4.3.3 of the XML Recommendation for more information.

If you do have an XML declaration, it must be the first thing in the
entity, with no whitespace, comments, or processing instructions in
front of it.

-Chris
-- 
<!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN">
<!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN"
"<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487
<USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>
Received on Monday, 8 March 1999 09:49:39 GMT

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