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

Re: When is the XML PI <?xml?> required ?

  • To: xml-dev@l...
  • Subject: Re: When is the XML PI <?xml?> required ?
  • From: Richard Tobin <richard@c...>
  • Date: Tue, 18 Nov 2003 22:42:10 GMT
  • Cc:
  • In-reply-to: <m3y8udcpa7.fsf@l...>
  • Organization: HCRC, University of Edinburgh
  • References: <3fb7c121$0$237$636a55ce@n...> <bp8i0s$1lsoqd$1@I...>

xml pi
>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".

I think it's important that a document be either an XML 1.0 document
or and XML 1.1 document; we don't want documents that are sometimes
treated as one and sometimes the other.

>-- which is entirely appropriate
>considering that the vast majority (probably all) of existing XML
>1.0 documents are conforming XML 1.1 documents, and it is also
>quite easy to write XML 1.1 documents that conform to the
>1.0.

The way this is expected to work is not that a document is both a 1.0
and 1.1 document, but rather that all 1.1 parsers will also be 1.0
parsers.  XML 1.0 is not going away an time soon; it is not in any way
deprecated by the existence of XML 1.1.  There's no reason to label a
document 1.1 unless you use 1.1 features.

>While it's usually preferable to specify the XML
>declaration, there are situations in which it would be useful to
>keep the XML version vague:

I don't think that's right: it should be clear that a document is XML
1.0, so that there's no doubt that 1.0 parsers must accept it.

And it's also important to be clear what the version of a document is so
that there is no doubt about what it's infoset is.

-- 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.