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

Re: XML 1.1 and other specs

Re:  XML 1.1 and other specs
At 9:30 AM -0400 10/22/02, John Cowan wrote:

>In fact the Infoset has no rules about what is a valid name, either
>directly or by reference.  It's true that you can't construct an
>infoset with names that contain non-XML-1.0-name characters by parsing
>a 1.0 document, but the section "Synthetic Infosets" makes it clear
>that there are other ways to construct an infoset than by parsing.

In other words it's OK to have an element information item in which 
the name of an element is, for example, seven ASCII space characters 
in a row? My god, I had no idea.

What else can we throw out? The Infoset doesn't appear to require 
that there be only one ID type attribute per element. Hell, it 
doesn't even require that there be one element with the name foo. 
Give the element 23 foo attributes. The infoset's OK with it. Looking 
at 2.6. Character Information Items without assuming that XML rules 
apply, I now realize that infoset character information items can 
contain C0 controls including null, unmatched surrogate halves, and 
other nasty stuff. About the only well-formedness constraint the 
infoset seems to satisfy is the tree structure. Everything else is 
out the window.

Thanks. I think you've finally succeeded in convincing me of what 
Simon and Walter have been claiming for the last several years, that 
the Infoset is not only useless but actively harmful. It should be 
deprecated, and future specs such as XQuery/XPath 2.0 should base 
themselves on XML 1.0 plus namespaces and actively ignore the infoset.

| Elliotte Rusty Harold | elharo@m... | Writer/Programmer |
|          XML in a  Nutshell, 2nd Edition (O'Reilly, 2002)          |
|              http://www.cafeconleche.org/books/xian2/              |
|  http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/  |
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |


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.
First Name
Last Name
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.