OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[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

One of the constructors of the Builder class takes an XMLReader argument:

So you could try something like this in XIncludeDriver.java:

import org.apache.xml.resolver.tools.ResolvingXMLReader;

Builder builder = new Builder(new ResolvingXMLReader()); 


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]