[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Shared entity include file issues
Bob, et al,
I am using SAXON 6.5.5 and a fairly standard catalog file - most of it came
out of your book. What I am trying to do is to set up the tools and static files
so that each documentation project can be run out of its own directory and
reference the catalog and corporate ENTITY files that will exist in a
separate directory.
The dir structure will look similar to this
<docroot>
|-
doctools
|-
documentation
|- corp
(static ENTITY files (*.mod))
|- project1
|- project2
This structure needs to work on Windows and Linux, so all of the tools are
in doctools (saxon,fop,etc). However, the entity files are not being located
correctly under Linux, using relative dirs. I have even tried static directory
names (as below) but to no avail.
The error that I get is that SAXON is looking for the entity file in the
"project" directory where the process is run from, but it is located in the
"corp" dir.
I'm sure there is a better way of locating corporate static files, so I am
open to suggestions. But I would still like to solve this catalog/entity
issue.
Regards,
Dean Nelson
------- catalog file ----------
<!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.73.2"> <!ENTITY DB_VER "docbook-xml-4.5"> <!ENTITY MATHML_VER "MathML2"> <!ENTITY BASE_DIR "../../"> <!ENTITY CORP_MOD_DIR "file:///root/doc/documentation/corp/"> ]>
<!-- ENTITIES BASE_DIR = this is the base of the whole doc tree including doctools Linux : "file:///root/doc/" Win32 : "../../" <!ENTITY BASE_DIR "file:///root/doc/"> <!ENTITY BASE_DIR "../../"> --> <catalog prefer="public" xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> <group xml:base="&BASE_DIR;"> <!--
configured above -->
<!-- <group prefer="public" xml:base="file:///root/doc/"> --> <!-- UNIX/LINUX --> <!-- <group prefer="public" xml:base="../../"> --> <!-- Windows --> <system systemId="met-xinclude.mod" uri="&CORP_MOD_DIR;/met-xinclude.mod"/> <system systemId="met-defs.mod" uri="&CORP_MOD_DIR;/met-defs.mod"/> <uri name="met-xinclude.mod" uri="&CORP_MOD_DIR;/met-xinclude.mod"/> <public 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"/> <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;/"/> </group>
<!-- Resolve DTD PUBLIC identifiers
-->
<nextCatalog catalog="doctools/&DB_VER;/catalog.xml"/> </catalog> ---------------------------------- In a message dated 2/27/2008 10:58:26 A.M. Pacific Standard Time,
bobs@sagehill.net writes:
Delicious ideas to please the pickiest eaters. Watch the video on AOL Living. |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]