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

Re: version numbers and infosets


Re:  version numbers and infosets
[Richard Tobin]

> I think the best compromise is to say that documents labelled with a
> version other than 1.0 are not well-formed XML 1.0 documents, but that
> an XML 1.0 parser may accept them.  This breaks no documents and no
> implementations, but it allows us to unambiguously state the version
> of a document.  Can anyone see any problems with it?
>

It seems to make sense, yet I have a bit of trouble thinking a document is
not well-formed when it can become well-formed just by removing the xml
declaration.  I remember we had some long threads on this months ago (or was
it last year?) but I do not remember any well-accepted solution emerging.
Guess it is time again.

How about if

1) A 1.1 parser could optionally have a 1.0 mode, and
2) There were programmatic means to query whether it supported 1,0, and if
it did,
3) The parse mode could be set programmatically, and maybe
4) Such a parser failing on a document could optionally (under program
control) switch modes and try again.  This last could be a recommended
design practice, rather than a requirement.

Cheers,

Tom P



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.