I have a number of XML documents, loaded from the database, that start with this:
And I am trying to apply an XSL transformation on the given document that I get as a
String using this method:
And my CustomEntityResolver looks like this:
In my quest to use an EntityResolver, to avoid resolving the DTD over the network, I came across this method that org.dom4j.Document provides. Its documentation states:
The code as it stands right now throws a file not found exception every time the DTD isn't available on sourceforge, which happens more often than my users would like to see.
Can somebody please explain to me how I am using the EntityResolver incorrectly if I am?
Shouldn't providing my own implementation of an EntityResolver to the Document instance be sufficient to avoid having a transformer go on the network to resolve the DTD?
Thanks a bunch in advance for any and all help anybody can provide.