2) provide your parser with a custom URI resolver that
hijacks the link, so
when the system asks for the DTD, it gets back nothing.
You mean an EntityResolver. The URIResolver is used only for URIs
handled by the XSLT processor (include/import, document()). Entities
retrieved by the XML parser are handled by the SAX EntityResolver.
Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list