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

Re: the infoset is two infosets (or even three?) [was: Re: [xm


Re:  the infoset is two infosets (or even three?) [was: Re: [xm
Amy Lewis writes:
> Item 5 in the description of the element information item.  "An
> unordered set of attribute information items ....  Namespace
> declarations do not appear in this set."  SAX2 gets this right.  DOM
> does not, since namespace declarations are represented in the DOM tree
> as attributes.
> 
> > and even though a namespace declaration *is* an attribute, treating
it 
> 
> I repeat, read the infoset.  A namespace declaration is *not* an
> attribute, in infoset terms.

As long as we're arguing about the Infoset, I have to say that I find
the decision of XPath to consider namespace declarations something other
than attributes and of the Infoset to put them in a separate [namespace
attributes] box to be a painful sign that abstractions are dangerous to
useful syntax.  I have no idea who decided we all needed to be protected
from namespace declarations this way, but I've yet to see a
justification for it.

Namespaces in XML states:"A namespace is declared using a family of
reserved attributes. Such an attribute's name must either be xmlns or
have xmlns: as a prefix. These attributes, like any other XML
attributes, may be provided directly or by default."

Sounds to me like a set of attributes.

SAX2 does provide an option for reporting namespace declarations as
attributes, even when namespace-aware processing is turned on.

But hey, we all know why the namespaces spec exists: to create pointless
arguments!  (Ditto for the Infoset spec.)


-------------
Simon St.Laurent - SSL is my TLA
http://simonstl.com may be my URI
http://monasticxml.org may be my ascetic URI
urn:oid:1.3.6.1.4.1.6320 is another possibility altogether

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.