OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] The version number in XML documents

[ Lists Home | Date Index | Thread Index ]

In article <002701c2300a$feebaee0$6401a8c0@pcukmka> you write:

>They are already allowed to reject a document claiming version="1.1", as
>you have just said. They are also allowed to process it, and accept it
>provided it conforms in all other respects to XML 1.0. Since (one hopes)
>the vast majority of documents that are well-formed under XML 1.1 will
>also be well-formed under XML 1.0, why are you trying to make a
>retrospective change that forces XML 1.0 parsers to reject such

Certainly the XML 1.0 spec allows parsers to accept documents such

  <?xml version="1.1"?>
  <!-- This is document "a" -->

But consider a slightly different question: is that a well-formed XML
1.0 document?

The natural answer seems to me to be "no, it's a well-formed XML 1.1
document".  And I think it's good for there to be an single answer to
"what version of XML is this document?".

Suppose we took that position, but also said "XML 1.0 parsers may
accept documents that are well-formed XML 1.0 apart from having the
wrong version number".  Would that be acceptable?

There is also the converse:

  <?xml version="1.0"?>
  <!-- This is document "b" -->

Document "b" is a well formed XML 1.0 document.  Is it also a
well-formed XML 1.1 document?  Or is it rather the case that XML 1.1
parsers must (or should) accept well-formed XML 1.0 documents as well
as well-formed XML 1.1 documents?

-- Richard


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS