[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Catalogs
Russell
I struggled with that also. Here what I found worked best for me. I used a relative path (mostly) instead of a fixed one. I also needed this to work for Windows and Linux so I structured it so that I would only adjust the base dir. Here is mine:
Regards,
Dean Nelson
<? xml version="1.0" encoding="UTF-8"?><! DOCTYPE catalog PUBLIC "-//OASIS/DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd" [ <!ENTITY XSL_VER "docbook-xsl-1.74.0"> <!ENTITY DB_VER "docbook-xml-4.5"> <!ENTITY MATHML_VER "MathML2"> <!ENTITY BASE_DIR "file:///root/doc/">] > <!-- ENTITIESBASE_DIR = this is the base of the whole doc tree including doctools Linux : "file:///root/doc/" Win32 : "../../" --> <!-- When changing the XSL version - make sure it is also changed in the xml.pro file -->< catalog prefer="public" xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> <!-- DTD and stylesheet files installed under --> <group xml:base="&BASE_DIR;"> <!-- configured above --> <!--<group prefer="public" xml:base="file:///root/doc/"> --> <!-- UNIX/LINUX --> <!-- <group prefer="public" xml:base="../../"> --> <!-- Windows --> publicId="-//OASIS//DTD DocBook XML V4.4//EN" uri="doctools/&DB_VER;/docbookx.dtd"/> <public publicId="-//W3C//DTD MathML 2.0//EN" uri="doctools/MathML2/mathml2.dtd"/> <!-- Resolve DTD URL system ID to local file --> <rewriteSystem systemIdStartString="http://www.oasis-open.org/docbook/xml/4.4/" rewritePrefix="doctools/&DB_VER;/"/> <rewriteSystem systemIdStartString="http://www.docbook.org/xml/4.4/" rewritePrefix="doctools/&DB_VER;/"/> <rewriteSystem systemIdStartString="http://www.docbook.org/xml/4.5/" rewritePrefix="doctools/&DB_VER;/"/> <rewriteSystem systemIdStartString="http://www.w3.org/TR/MathML2/dtd/" rewritePrefix="doctools/&MATHML_VER;/"/> <!-- Resolve stylesheet URL to local file --> <rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl/current/" rewritePrefix="doctools/&XSL_VER;/"/> <rewriteURI uriStartString="http://docbook.sourceforge.net/release/slides/current/" rewritePrefix="doctools/&SLIDES_VER;/"/> <rewriteURI uriStartString="http://docbook.sourceforge.net/release/slides/" rewritePrefix="doctools/&SLIDES_VER;/"/> <!-- To resolve short stylesheet references --> <uri name="html-docbook.xsl" uri="doctools/&XSL_VER;/html/docbook.xsl"/> <uri name="chunk.xsl" uri="doctools/&XSL_VER;/html/chunk.xsl"/> <uri name="fo-docbook.xsl" uri="doctools/&XSL_VER;/fo/docbook.xsl"/> </group> <!-- Resolve DTD PUBLIC identifiers --> <nextCatalog catalog="file:///../../doctools/&DB_VER;/catalog.xml"/></ catalog>In a message dated 10/13/08 07:12:20 Pacific Daylight Time, russell.seymour@turtlesystems.co.uk writes:
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]