Lists Home |
Date Index |
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)