The background is that I'm using SAX2 a lot for
communicating XML data between software components
(not only from a parser).
The fact that there are two ways of specifying the
namespace and local name in the startElement and
endElement methods in the org.xml.sax.ContentHandler
interface, and in the Attributes interface, has caused
me a lot of headache and extra work. This makes it a
lot harder for developers of SAX producers, since they
need to provice both, and it's quite common with SAX
producers which aren't normal XML parsers.
I propose that the namespaceURI, localName and qName
parameters are replaced with the two parameters
namespacePrefix and localName (their use should be
obvious). And it the namespaceURI is needed, simply
use the provided namespace mappings.
Then the features "namespaces" and "namespace-
prefixes" can be removed.