Class ForeignFilter

java.lang.Object
eu.bandm.tools.util.xml.ContentProxy
eu.bandm.tools.xslt.base.ForeignFilter
All Implemented Interfaces:
ContentHandler

public class ForeignFilter extends ContentProxy
A ContentHandler which suppresses all top-level elementes which are not from the xslt namespace.
This is necessary because the [XSLT 1.0/sect 2.2] says "In addition, the xsl:stylesheet element may contain any element not from the XSLT namespace, provided that the expanded-name of the element has a non-null namespace URI."
Since a tdom model does not support this "lenient" behaviour, this filter can be prepepended if this behaviour is wanted. The second part ("non-null namespace URI.") is not checked, because it does not make any sense.
Assumes that all events are Namespace-Aware, ie. qName is IRRELEVANT!