Michael LeBlanc wrote: > > Before you prepared the configuration for my DocBook situation, I had > already installed the Apache FOP addon. It worked fine. > > I tried it after installing the configuration, and it did not work. I > just un-installed the addon, restarted, re-installed, restarted. It > still doesn't work when I try to convert a document to PDF (no TOC). > The displayed error is: > > java.io.FileNotFoundException: /private/var/folders/.../mydoc.dtd (No > such file or directory) >
Your XML documents starts with something like: --- <!DOCTYPE chapter SYSTEM "mydoc.dtd"> --- Right? Well, thanks to the XML catalog included in your configuration: --- <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> <system systemId="mydoc.dtd" uri="mydoc.dtd"/> </catalog> --- this works fine when the document is opened in XMLmind XML Editor, but not so well when it is transformed by Saxon prior to be processed by FOP. In a nutshell, your XML documents cannot start with something as simple as: SYSTEM "mydoc.dtd". You must either: [1] Use an absolute URI (even a fake one). Example: SYSTEM "file:/mydoc/mydoc.dtd" OR [2] (Recommended) Use PUBLIC "YOUR PUBLIC ID HERE" "YOUR SYSTEM ID HERE" In both cases, you need to use a text editor to modify accordingly *all* your existing document instances and also all the files contained in the configuration I've sent you. I've tested [1] by modifying the configuration and the sample files I've already sent you. You can download the updated files from: --- http://www.pixware.fr/_download/mydoc/mydoc.zip (4595bytes, Thu Apr 08 04:38:45 PM CEST 2010) http://www.pixware.fr/_download/mydoc/sample_chapter.xml (374bytes, Thu Apr 08 04:38:45 PM CEST 2010) http://www.pixware.fr/_download/mydoc/sample_section.xml (227bytes, Thu Apr 08 04:38:45 PM CEST 2010) --- However [2] is better in terms of interchange than [1]. So I still recommend that you implement [2] yourself. -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

