You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Pitt, Esmond" <pi...@anz.com> on 2002/09/19 02:24:06 UTC
ContentHandler::startPrefixMapping query
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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org