[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:  the infoset is two infosets (or even three?) [was:
On Tue, Aug 20, 2002 at 08:58:24AM -0400, AndrewWatt2000@a... wrote:
>In a message dated 20/08/2002 13:43:45 GMT Daylight Time, 
>amyzing@t... writes:
>> In order to do so, one of the things that we repeat, ad
>> nauseam, is that namespace declarations are not attributes.  
>
>I hesitate to comment on this having twice had my knuckles rapped this week - 
>by Tim Bray and Norman Walsh - for believing what a W3C Rec states... :) ... 
>but the Namespace in XML Recommendation seems to say the opposite to what you 
>"repeat, ad nauseam":
>
><quote_from_Chapter2>
>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. 
></quote_from_Chapter2>

Quite true.  According to the Namespaces rec, namespaces are just
attributes.

>It seems to me that namespace declarations are attributes.

Not according to the infoset, although it depends upon how you define
things.  The official terminology, as John Cowan reminded me, is "namespace
attribute."  This happens to be one of those things that is utterly
impossible to explain to someone whose program is broken and thus needs to
understand the distinction between namespace decls and attributes.  A
namespace is an attribute that isn't treated as an attribute and isn't
accessible as an attribute unless you're using DOM ....  Bleah.  A namespace
declaration is not an attribute (that is, it is not accessible via the
"attributes" property of element information items in the infoset).

Amy!
-- 
Amelia A. Lewis       amyzing@t...      alicorn@m...
Confidence: a feeling peculiar to the stage just before full
comprehension of the problem.

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.