I need to configure Apache FOP so that it uses my local docbook dtd files etc. I tried pretty much everything from writing a catalog file to installing apache xml resolver etc
Here is the catalog file I wrote. I also set the xml.catalog.files property to this file and instantiated an apache catalog resolver that the FopFactory uses as URIResolver. But the fop still fetches everything from the net.
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<group prefer="public" xml:base="file:///Users/raichoo/">
<public publicId="-//OASIS//DTD DocBook XML V4.5//EN" uri="docbook/docbookx.dtd" />
<public publicId="-//OASIS//DTD DocBook XML V4.1.2//EN" uri="docbook/docbookx.dtd" />
<system systemId="http://www.oasis-open.org/docbook/xml/4.5/" uri="docbook/" />
<rewriteSystem systemIdStartString="http://www.oasis-open.org/docbook/xml/4.5/" rewritePrefix="docbook/"/>
</group>
</catalog>
Any ideas what's going wrong?
Regards, raichoo
I solved the problem by simply removing the DOCTYPE from the file to transform. Not exactly a pretty solution but I could not convince to FOP to resolve the URIs.
Regards, raichoo