[xml-dev] Re: When is the XML PI <?xml?> required ?

From
Elliotte Rusty Harold <>
To
Richard Tobin <>,
Date
2003-11-19T13:48:31Z
ID
<p06002003bbe125096ffb@[192.168.254.4]>
Thread
[xml-dev] Re: When is the XML PI <?xml?> required ?
At 10:42 PM +0000 11/18/03, Richard Tobin wrote:
>>Also note that, at least AFAICT, if the version is not 1.0, the
>>xml declaration is still not necessarily required (unless it is
>>required by that later specification). In particular, the current
>>XML 1.1 Proposed Recommendation still specifies the xml
>>declaration as optional
>
>Woops!  I think that's a mistake, and needs to be fixed.  I'm
>surprised no-one commented on it before.
>
>An XML document without an XML declaration should be interpreted as
>an XML 1.0 document; it should only be treated as XML 1.1 if it has
>an XML declaration with version="1.1".
>

This is what section 4.3.4 says:

If an entity (including the document entity) is not labeled with a 
version number, it is treated as if labeled as version 1.0.
-- 

   Elliotte Rusty Harold
   
   Effective XML (Addison-Wesley, 2003)
   http://www.cafeconleche.org/books/effectivexml
   http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA