> [Joseph Kesselman]
> But I think there would be some value in a SAX1 to SAX2 adapter, and/or
> a SAX sanity-check filter, which folks who are worried about this could
> plug in between their SAX source and Xalan. [...]
I think this is a great idea on two fronts: 1) Keeping that sort of
functionality out of Xalan proper; and 2) Using the SAX API the way it's
supposed to be used (IMHO). This is a perfect job got an implementation of
org.xml.sax.XMLFilter. Also, there already ParserAdapter and
XMLReaderAdapter classes in the org.xml.sax.helpers package. ParserAdapter
implements DocumentHandler and (last time I looked at the implementation)
emits the corresponding SAX2 events. Among other things, it takes care of
namespace issues.
I don't know where it's ended up, but there is a thread about SAX and
extensions running on xml-dev and Leigh Dodds was collecting
enhancement/extension suggestions.
Paul Brown
FiveSight Technologies, Inc.