Re: XHTML <?XML?>? +browsers

[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 UTC