Thanks Michael, I'll follow up on the FOP list However it was this message on the FOP list which originally lead me to post here instead, http://thread.gmane.org/gmane.text.xml.fop.user/28862
By "custom EntityResolver" I assume Pietschmann means org.apache.xml.resolver.tools.CatalogResolver, from Apache commons I mentioned what I tried so far to get FOP/Xerces to use the catalog resolver, any other advice how to get Xerces to use the catalog resolver? Thanks again On Fri, 2009-10-09 at 08:35 -0400, Michael Glavassevich wrote: > Hi Jack, > > Your question is essentially, "how do I get FOP to provide an XML > Catalog to Xerces?". Good question but you should probably be asking > this on the FOP users list [1]. > > Thanks. > > [1] http://xmlgraphics.apache.org/mail.html#fop-users > > Michael Glavassevich > XML Parser Development > IBM Toronto Lab > E-mail: mrgla...@ca.ibm.com > E-mail: mrgla...@apache.org > > Jack Bates <ms...@freezone.co.uk> wrote on 10/09/2009 12:58:17 AM: > > > I'm struggling to get Xerces to use an XML catalog > > > > When I try to convert some HTML pages to PDF with Apache FOP, it > > complains, > > > > [...] > > Caused by: java.io.IOException: Server returned HTTP response code: > 503 > > for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd > > at > > sun.net.www.protocol.http.HttpURLConnection. > > getInputStream(HttpURLConnection.java:1269) > > at > > org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown > > Source) > > [...] > > > > Here's the complete screenlog, > > http://www.sfu.ca/~jdbates/tmp/fop/200910080/screenlog > > > > I understand that w3 restricts access to DTDs by some clients which > > generate excessive traffic? but my operating system - Debian - > > distributes a local copy of this DTD at /etc/xml/w3c-dtd-xhtml.xml, > and > > an XML catalog at /etc/xml/catalog > > > > To get Xerces to use this catalog I tried, > > > > * Installed the libxml-commons-resolver1.1-java package which > > contains /usr/share/java/xml-commons-resolver-1.1.jar > > * Set prefer=public in /etc/xml/resolver/CatalogManager.properties > > * Ran FOP with > > CLASSPATH=/usr/share/java/xml-commons-resolver-1.1.jar: > > /etc/xml/resolver:/etc/xml/resolver/CatalogManager.properties > > > > - no luck : ( > > > > I'm following this FAQ entry, > > http://xerces.apache.org/xerces2-j/faq-xcatalogs.html > > > > - and additionally found this documentation, > > http://xml.apache.org/commons/components/resolver/resolver-article. > > html#ctrlresolver > > > > - but haven't figured out yet how to get FOP to use the local copy > of > > the DTD > > > > There's additionally an outstanding bug report against the Debian > FOP > > package, to solve this problem, > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=512443 > > > > Any suggestions how to get Xerces to use the XML catalog - or advice > how > > to proceed debugging? > > > > I also tried running FOP with the -d option, but among the debugging > > messages I didn't find anything useful... > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org > > For additional commands, e-mail: j-users-h...@xerces.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org For additional commands, e-mail: j-users-h...@xerces.apache.org