David Mechner wrote:
On advice received here, I'm trying to use CatalogResolver to make my
program access a local SVG dtd instead of a remote one at w3.org.
I've gotten as far as getting xalan to use the resolver, but it seems
that the problem (well, the behavior I want to change, anyway) is in
the next step; in FOP. But I can't see how to get FOP to use my
CatalogResolver.
FOP works on tree level and has nothing to do with dtd handling, that's
completely duty of xml parser. I believe all you have to do is to set up
com.sun.resolver.tools.CatalogResolver as entity resolver using
setEntityResolver method of XMLReader class before parsing your fo/xsl/xml.
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel