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

Re: [Sax-devel] Re: SAX survey: expected local name for non-namespace qu

  • To: David Brownell <david-b@p...>, Arnaud Le Hors <lehors@u...>
  • Subject: Re: [Sax-devel] Re: SAX survey: expected local name for non-namespace qualified elements
  • From: "Simon St.Laurent" <simonstl@s...>
  • Date: Sun, 02 Jun 2002 10:16:35 -0400
  • Cc: xerces-j-dev@x..., sax-devel@l..., xml-dev@l...
  • In-reply-to: <3CF8E47B.7020807@p...>
  • References: <" <4.2.0.58.J.20020528113123.044b18f8"@localhost><4.2.0.58.J.20020528184428.024936f8@localhost><3CF4DA2A.9010006@t...><p04330102b91aaccc6808@[192.168.254.4]><3CF5456C.4040108@p...><3CF559FB.9050008@u...><OF14B5085A.90DE2214-ON86256BCA.00592DAC@r...><3CF7CC84.1050305@u...>

Re: [Sax-devel] Re: SAX survey: expected local name for non-namespace qu
At 08:12 AM 6/1/2002 -0700, David Brownell wrote:
>Hmm, in that case it might also be worth just stipulating that the URI
>and localName must always be reported as empty strings when namespace
>processing is disabled ... as it stands today, processors are allowed
>to report them in that case (but not required).  That is, if that
>processing is turned off ("out of that context"), it's really off.

I disagree completely.  I write all of my filter code to rely on localName 
and URI - with no ill-effects when there is no URI - see below for more on why.


>On the other hand, I don't think I've heard anything but agreement to
>the notion that qName should always be reported ... at least when
>processing "real XML" instead of something that already discarded
>the prefixes being used.

If "namespace processing is off and we've never heard of namespaces", then 
we've never heard of QNames either.  If you insist on going this route, 
you'd better change the API to remove the notion of QName when namespace 
processing is off.  "Local name" might at least mean "the name local to the 
element" in cases without any understanding of namespaces.

>Those are both categories of implementation variance that the current
>SAX spec allows, though which (thankfully) not many implementors have
>taken advantage of.  In the interest of application portability, I'd
>be glad to see them removed in a SAX 2.1 release.

In the interest of application portability, I'd recommend requiring 
reporting the name of the element as localName when namespace processing is 
turned off.

Simon St.Laurent
"Every day in every way I'm getting better and better." - Emile Coue


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.