[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Can XOM's XIncludeDriver use an XML catalog?
Hi. 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? I've got one set up for use with Saxon and the DocBook XSL stylesheets. Here's the command I am giving to XInclude: java \ nu.xom.samples.XIncludeDriver \ source/${FILE_NAME}/${FILE_NAME}.xml > source/${FILE_NAME}/${FILE_NAME}.resolved.xml I've pasted the error I'm seeing at the bottom of this message. I have a script that resolves five documents. Different documents encounter this problem each time I run it. The errors complain about different files also. Thanks for your help. Peter java.io.IOException: Server returned HTTP response code: 403 for URL: http://www.oasis-open.org/docb ook/xml/4.5/ent/isoamsr.ent java.io.IOException: Server returned HTTP response code: 403 for URL: http://www.oasis-open.org/docb ook/xml/4.5/ent/isoamsr.ent at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Sourc e) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.startPE(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.skipSeparator(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.scanDecls(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.scanDTDExternalSubset(Unknown S ource) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(Unknown Sou rce) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno wn Source) at com.sun.org.apache.xerces.internal.parsers.DTDConfiguration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.DTDConfiguration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at nu.xom.Builder.build(Unknown Source) at nu.xom.Builder.build(Unknown Source) at nu.xom.xinclude.XIncluder.downloadXMLDocument(Unknown Source) at nu.xom.xinclude.XIncluder.resolve(Unknown Source) at nu.xom.xinclude.XIncluder.resolve(Unknown Source) at nu.xom.xinclude.XIncluder.resolve(Unknown Source) at nu.xom.xinclude.XIncluder.resolve(Unknown Source) at nu.xom.xinclude.XIncluder.resolve(Unknown Source) at nu.xom.xinclude.XIncluder.resolve(Unknown Source) at nu.xom.xinclude.XIncluder.resolveInPlace(Unknown Source) at nu.xom.xinclude.XIncluder.resolveInPlace(Unknown Source) at nu.xom.xinclude.XIncluder.resolveInPlace(Unknown Source) at nu.xom.samples.XIncludeDriver.main(Unknown Source)
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]