Revised NamespaceFilter

John Cowan cowan at locke.ccil.org
Thu Aug 13 00:00:30 BST 1998


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 at 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)

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list