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

Re: version numbers and infosets


e38 xml parser
[Richard Tobin]

>
> But of course an XML 1.0-only parser cannot generate the correct
> infoset for all such documents, because of the changed whitespace
> rules.  And it may generate an infoset for a document that doesn't
> have one if XML 1.1 is not a superset of 1.0 (eg if it makes
> unnormalized unicode a well-formedness error).
>
> This might be taken as an argument for requiring 1.0 parsers to reject
> 1.1 documents.

I see that erratum E38 to the XML 1.0 Rec removed the prescription that it
is an error to use the wrong version number in the XML declaration.  If that
will be the same in XML 1.1, at least it will be legal for a 1.1 processor
to say that a document is version 1.0 if in fact it does not use any of the
changed characters.  This may become a normal thing to do.

It used to be an error to use "version 1.0" if a document did not conform to
the 1.0 Rec.  I think that a number of parsers interpreted that to mean that
only "version 1.0" is allowed in the declaration.  Like it or not, we are
going to have those parsers in service for a long time.

Too bad the only choice is to omit the whole prolog if your versoin number
would cause trouble, because if you omit it you cannot specify the encoding.

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.