Consider the document:

 <a:doc xmlns:a="http://www.mydomain.com/ns";>
  <a:element xmlns:a="http://www.mydomain.com/ns"/>
 </a:doc>

Obviously the second namespace declaration is redundant, and it can be
argued that it doesn't really constitute a new startPrefixMapping event.
However ContentHandler::startPrefixMapping is called for both namespace
declarations. Is this considered correct behaviour? The SAX specification
isn't very clear on the point.

The question is relevant from the XML-C14N point of view. It is possible to
write an XML-C14N processor as a ContentHandler driven by a SAX2 parser. I'm
looking for a resolution as to which component should be responsible for
suppressing redundant namespace declarations.

EJP


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to