OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

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

[ Lists Home | Date Index | Thread Index ]
  • To: David Brownell <david-b@pacbell.net>, Arnaud Le Hors <lehors@us.ibm.com>
  • Subject: Re: [Sax-devel] Re: SAX survey: expected local name for non-namespace qualified elements
  • From: "Simon St.Laurent" <simonstl@simonstl.com>
  • Date: Sun, 02 Jun 2002 10:16:35 -0400
  • Cc: xerces-j-dev@xml.apache.org, sax-devel@lists.sourceforge.net, xml-dev@lists.xml.org
  • In-reply-to: <3CF8E47B.7020807@pacbell.net>
  • References: <" <4.2.0.58.J.20020528113123.044b18f8"@localhost><4.2.0.58.J.20020528184428.024936f8@localhost><3CF4DA2A.9010006@textuality.com><p04330102b91aaccc6808@[192.168.254.4]><3CF5456C.4040108@pacbell.net><3CF559FB.9050008@us.ibm.com><OF14B5085A.90DE2214-ON86256BCA.00592DAC@rchland.ibm.com><3CF7CC84.1050305@us.ibm.com>

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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS