OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Catalogs

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

'Example DocBook catalog file' - http://www.sagehill.net/docbookxsl/ExampleCatalog.html

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"

<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="styles/cpsltdonline-order.xsl" />

 <!-- DTD and stylesheet files installed under /usr/share/xml -->
  <group  xml:base="file:///usr/share/xml/">

    <!-- Resolve DTD URL system ID to local file -->
        rewritePrefix="docbook/schema/dtd/4.5/" />
    <!-- Resolve stylesheet URL to local file -->
        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 -->
         uri="docbook/schema/dtd/4.5/docbookx.dtd" />

    <!-- To resolve short stylesheet references -->
        uri="docbook/stylesheet/nwalsh/fo/docbook.xsl" />



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]