I am retreiving XML resources from the net and transforming them locally via XSL with Apache Xalan. Whenever an XML file contains a DOCTYPE declaration, the parser insists on looking up the remote DOCTYPE URL. How can I avoid that?

Davanum Srinivas

You need to set a custom EntityResolver as documented in: