[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: The version number in XML documents


xml version number
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
>documents?

Certainly the XML 1.0 spec allows parsers to accept documents such
as:

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

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" -->
  <foo/>

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.