Good afternoon all,
I am trying to write a catalog file for my DocBook processing so all the paths that I need are in one place. At the moment I have limited success.
I have pretty much lifted the Catalog file from
and I have got the system to find my customisation stylesheet in the correct location.
However when my file then tries to import the Docbook XSL file, it does it with the same path location as it did when it found my customisation, even though in my catalog I have a different path for this file.
I am using xsltproc to produce my FO file, the command I am using is:
XML_CATALOG_FILES="catalog.xml" xsltproc -o
output.fo cpsltdonline.xsl c815ea1d111988cfc9e630e7feb3b6a6.xml
If i re-run this command using fo-docbook.xsl instead it works perfectly and I get the FO, trouble is that it is not what I want. I have appened the Catalog file to the end of this email.
Thanks, Russell
<?xml version="1.0"?>
<!DOCTYPE catalog
PUBLIC "-//OASIS/DTD Entity Resolution XML Catalog V1.0//EN"
"
http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<group xml:base="file:///home/russells/workspace/cpsltdonline/docbook/">
<uri name="cpsltdonline.xsl"
uri="custom/cpsltdonline.xsl" />
<uri
name="cpsltdonline-order.xsl"
uri="styles/cpsltdonline-order.xsl" />
</group>
<!-- DTD and stylesheet files installed under /usr/share/xml -->
<group xml:base="file:///usr/share/xml/">
<!-- Resolve DTD URL system ID to local file -->
<rewriteSystem
systemIdStartString="
http://www.oasis-open.org/docbook/xml/4.5/"
rewritePrefix="docbook/schema/dtd/4.5/" />
<!-- Resolve stylesheet URL to local file -->
<rewriteURI
uriStartString="
http://docbook.sourceforge.net/release/xsl/current/"
rewritePrefix="docbook-xsl-1.73.1/" />
<!-- To resolve simple DTD SYSTEM identifiers. -->
<!-- Note: this does not work with Java resolver -->
<!-- classes in Saxon or Xalan -->
<system
systemId="docbook.dtd"
uri="docbook/schema/dtd/4.5/docbookx.dtd" />
<!-- To resolve short stylesheet references -->
<uri
name="fo-docbook.xsl"
uri="docbook/stylesheet/nwalsh/fo/docbook.xsl" />
</group>
</catalog>