Class NamespaceHomonymResolver

java.lang.Object
eu.bandm.tools.util.ContentProxy
eu.bandm.tools.util2.NamespaceHomonymResolver
All Implemented Interfaces:
ContentHandler

public class NamespaceHomonymResolver extends ContentProxy
A ContentHandler which propagates all SAX events but changes "start prefix mapping" and the corresponding "end prefix mapping" iff HOMONMYS (=re-uses of prefices) are detected. ASSUME that all SAX events passing through are in "namespace mode"; ie. get their identity from "localName" and "uri", NOT using qname/prefix! The qname field is NOT adapted according to the calculated re-mapping and must be ignored in all subsequent processing steps. ASSUME that no prefix is re-used on THE SAME level of element nesting! Because in this case the sequential order of the corresponding "end prefix mapping" commands cannot be established.