Lists Home |
Date Index |
- To: David Brownell <email@example.com>, Arnaud Le Hors <firstname.lastname@example.org>
- Subject: Re: [Sax-devel] Re: SAX survey: expected local name for non-namespace qualified elements
- From: "Simon St.Laurent" <email@example.com>
- Date: Sun, 02 Jun 2002 10:16:35 -0400
- Cc: firstname.lastname@example.org, email@example.com, firstname.lastname@example.org
- In-reply-to: <3CF8E47B.email@example.com>
- References: <" <188.8.131.52.J.20020528113123.044b18f8"@localhost><184.108.40.206.J.20020528184428.024936f8@localhost><3CF4DA2A.firstname.lastname@example.org><email@example.com><3CF5456C.firstname.lastname@example.org><3CF559FB.email@example.com><OF14B5085A.90DE2214-ON86256BCA.00592DAC@rchland.ibm.com><3CF7CC84.firstname.lastname@example.org>
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
"Every day in every way I'm getting better and better." - Emile Coue