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 fornon-namespace qua

[ Lists Home | Date Index | Thread Index ]
  • To: xerces-j-dev@xml.apache.org, sax-devel@lists.sourceforge.net, xml-dev@lists.xml.org
  • Subject: Re: [Sax-devel] Re: SAX survey: expected local name fornon-namespace qualified elements
  • From: "Simon St.Laurent" <simonstl@simonstl.com>
  • Date: 01 Jun 2002 09:42:12 -0400
  • In-reply-to: <3CF7CC84.1050305@us.ibm.com>
  • References: <" <"@localhost><><3CF4DA2A.9010006@textuality.com> <p04330102b91aaccc6808@[]><3CF5456C.4040108@pacbell.net> <3CF559FB.9050008@us.ibm.com><OF14B5085A.90DE2214-ON86256BCA.00592DAC@rchland.ibm.com> <3CF7CC84.1050305@us.ibm.com>

On Fri, 2002-05-31 at 15:18, Arnaud Le Hors wrote:
> I guess you could argue this makes sense. But it's not what I would 
> expect and others argue that the localName should be the same as the 
> qName in this case. Others may argue for something else yet.
> What this proves to me is that people don't agree. And there is no way 
> to say who's right who's wrong because there is no definition to refer 
> to. The fact is that the notions of local name, prefix, and qualified 
> name are only defined in the context of Namespaces. Once you're out of 
> this context they therefore don't mean anything.
> This is why I think it is best to leave them alone (i.e., having them be 
> null) when namespaces processing is off.

I think you've missed the point that the SAX2 API itself IS
namespace-aware, and that flipping a switch to turn off
namespace-processing doesn't necessarily mean turning off chunks of the

I have an incredibly hard time believing that SAX filter writers such as
myself should have to write their code to check different arguments in
the API depending on whether a particular flag was set a given way.  

I have an even more difficult time finding any benefit whatsoever in
reporting information that is actually available as null, though I
suppose I can write yet another SAX filter which compensates for such
peculiar practice.

If you genuinely don't want to think about namespaces and don't want to
know, SAX1 is always an option.

Simon St.Laurent
Ring around the content, a pocket full of brackets
Errors, errors, all fall down!


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

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