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

Re: SAX survey: expected local name for non-namespace qualifie


sax haven
Elliotte Rusty Harold wrote:
> 1. Before now, what was your understanding of this point?

That SAX would return the element type name in localName.

> When
> writing and teaching did you tell your students to rely on local
> names or qNames for non-namespace qualified elements?

local names

> What have you
> relied on in your code?

local names

> 2. If you've implemented a parser, what does your parser do?

Haven't implemented a parser

> 3. If you participated in the original specification of SAX2 back in
> 1999/2000 what were you thinking about this then?

Didn't participate.

NOTE:

I believe that the namespaces spec states that the local name is always
non-null. In particular, the definition of a QName has an optional
prefix:

   QName ::= (Prefix ':')? LocalPart

and states that, "[Definition:] The LocalPart provides the local part of
the qualified name."

If there was no such thing as a local name when namespaces weren't used,
then it seems that the spec would not explicitly cover the case where no
prefix is used and there is no default namespace (see section 5.2). That
is, it would require either a prefix or a default namespace and it would
explicitly state that documents containing unprefixed names in the
absence of a default namespace would be considered non-conformant.

-- Ron

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.