Revised NamespaceFilter

John Cowan (cowan@locke.ccil.org)
Wed, 12 Aug 1998 18:00:09 -0400


A revised NamespaceFilter SAX parser, conforming (more or less)
to the new namespace draft, is now available at:

http://www.ccil.org/~cowan/XML/ns.jar .

This is source code only. It now looks *exactly* like a regular
SAX parser, and can be specified to any SAX application using
-Dorg.xml.sax.parser=org.ccil.cowan.sax.NamespaceFilter.

The real SAX parser must be specified as the value of the Java property org.ccil.cowan.sax.ParserFilter.org.ccil.cowan.sax.NamespaceFilter.
Yes, I know it's ugly.

This version uses the dagger (U+2020) in UniversalNames to separate
the URI from the localPart. When the event structure for
namespace-aware SAX parsers settles, I will modify it to use that.
Note that the JDK1.1.5 console driver prints the dagger as "?", but it
isn't really a "?".

Feedback is earnestly solicited.

-- 
John Cowan	http://www.ccil.org/~cowan		cowan@ccil.org
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)