[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] Can XOM's XIncludeDriver use an XML catalog?
| -----Original Message----- | From: Peter Desjardins | | I'm trying to use XInclude from the XOM package | (http://www.ibiblio.org/xml/XOM/) to resolve xi:includes. | Sometimes it | works perfectly. I'm seeing frequent intermittent failures to resolve | my documents because XInclude can't access DTD components on the | Internet. | | I am invoking XInclude as shown in Bob Stayton's book | (http://www.sagehill.net/docbookxsl/Xinclude.html#JavaXIncludes). Is | there a way to configure the class to use an XML catalog? It seems like it should be possible. See http://markmail.org/message/5p2rw3oxhrcewvft. One of the constructors of the Builder class takes an XMLReader argument: http://www.xom.nu/apidocs/nu/xom/Builder.html So you could try something like this in XIncludeDriver.java: ---------- import org.apache.xml.resolver.tools.ResolvingXMLReader; ... Builder builder = new Builder(new ResolvingXMLReader()); ---------- Mauritz
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]