How to set default org.xml.sax.EntityResolver for XSLT?

Tom Epperly <[email protected]>
Newsgroups gmane.text.xml.xalan.java.user
Organization Lawrence Livermore National Laboratory
Message-ID <[email protected]>
I work on a program called Babel, http://www.llnl.gov/CASC/components/,
and we use Xalan-J to do something like JavaDoc for our Scientific
Interface Definition Language.  It's very handy to put the DTDs in
Babel's jar file and use a custom gov.xml.sax.EntityResolver to find the
required DTDs in the jar file. For Xerces, it's relatively simple to
direct it to use Babel's EntityResolver.

However in my application, Xalan seems to create multiple XML parsers as
XML files refer to other XML files.  When it reads some of the XML
files, it can't find my DTDs. Is there a way to set the default
EntityResolver for Xalan, so it will use my EntityResolver for all the
recursive XML parsers?

Please Cc me on replies because I am not a subscriber to the list.

Regards,

Tom Epperly
Lawrence Livermore National Laboratory
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.