Platform: RedHat 8.0,
IBM Java2 1.3.1
saxon 6.5
apache (Sun?) resolver 1.0
DocBook XML 4.1.2 (native to RedHat 8)
DocBook XSL 1.60.1 (from an RPM created by myself)
When I try building my documents, I get error messages about the
dbnotnx.mod file not being found in the document directory.
This seems to be the same problem discussed in this email thread:
http://www.biglist.com/lists/xsl-list/archives/200301/threads.html#00011
However, the fix suggested by Dave Pawson in this thread doesn't work
for me. Is there anything else I could try?
The fix was to include the docbook.cat file with the construct
<group
prefer="public"
xml:base="/usr/share/sgml/docbook/xml-dtd-4.1.2-1.0-14/" >
<nextCatalog catalog="docbook.cat"/>
</group>
instead of
<nextCatalog
catalog="/usr/share/sgml/docbook/xml-dtd-4.1.2-1.0-14/docbook.cat"/>
FWIW using saxon with XML Catalogs works for me on RedHat 7.2 and
debian testing/unstable, albeit with different XML Catalog files. The
current RedHat 8.0 catalog file started out as the RedHat 7.2 catalog
file.
I've included the error messages I get when I try to build HTML and FO
from a simple document, and I've attached the catalog file I use on
RedHat 7.2, the catalog file I use on RedHat 8.0, and the
CatalogManager.properties file I use on RedHat.
Thanx!
- Steinar
cd ~/cvs/projects/tps/doc/xml/simplebook/
make -k
time java -cp
..:/usr/share/java/classes/saxon/saxon.jar:/usr/share/sgml/docbook/xsl-stylesheets/extensions/saxon65.jar:/usr/share/sgml/docbook/xsl-stylesheets/extensions/resolver-1.0.jar
com.icl.saxon.StyleSheet -x org.apache.xml.resolver.tools.ResolvingXMLReader -y
org.apache.xml.resolver.tools.ResolvingXMLReader -r
org.apache.xml.resolver.tools.CatalogResolver -o simplebook.html simplebook.xml
../local-html.xsl
Error on line 66 column 1 of
file:/home/sba/cvs/projects/tps/doc/xml/simplebook/simplebook.xml:
Error reported by XML parser: Cannot read from
file:/home/sba/cvs/projects/tps/doc/xml/simplebook/dbnotnx.mod
(/home/sba/cvs/projects/tps/doc/xml/simplebook/dbnotnx.mod (No such file or directory))
Transformation failed: Run-time errors were reported
Command exited with non-zero status 2
12.60user 0.48system 0:19.30elapsed 67%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (2894major+14374minor)pagefaults 0swaps
make: *** [simplebook.html] Error 2
time java -cp
..:/usr/share/java/classes/saxon/saxon.jar:/usr/share/sgml/docbook/xsl-stylesheets/extensions/saxon65.jar:/usr/share/sgml/docbook/xsl-stylesheets/extensions/resolver-1.0.jar
com.icl.saxon.StyleSheet -x org.apache.xml.resolver.tools.ResolvingXMLReader -y
org.apache.xml.resolver.tools.ResolvingXMLReader -r
org.apache.xml.resolver.tools.CatalogResolver -o simplebook.fo simplebook.xml
../local-fo.xsl
Error on line 66 column 1 of
file:/home/sba/cvs/projects/tps/doc/xml/simplebook/simplebook.xml:
Error reported by XML parser: Cannot read from
file:/home/sba/cvs/projects/tps/doc/xml/simplebook/dbnotnx.mod
(/home/sba/cvs/projects/tps/doc/xml/simplebook/dbnotnx.mod (No such file or directory))
Transformation failed: Run-time errors were reported
Command exited with non-zero status 2
12.66user 0.41system 0:19.46elapsed 67%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (2894major+13683minor)pagefaults 0swaps
make: *** [simplebook.fo] Error 2
make: Target `all' not remade because of errors.
Compilation exited abnormally with code 2 at Wed Mar 12 15:03:21
<?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>
<!-- Translate DocBook XML 4.1.2 system ids to local file names -->
<rewriteSystem
systemIdStartString="http://www.oasis-open.org/docbook/xml/4.1.2/"
rewritePrefix="/usr/share/sgml/docbook/xml-dtd-4.1.2/"/>
<!-- Translate DocBook XML 4.1.2 public ids to local file names -->
<nextCatalog
catalog="/usr/share/sgml/docbook/xml-dtd-4.1.2/docbook.cat"/>
<!-- Translate DocBook XML 4.2 system ids to local file names -->
<rewriteSystem
systemIdStartString="http://www.oasis-open.org/docbook/xml/4.2/"
rewritePrefix="/usr/share/sgml/docbook/xml-dtd-4.2/"/>
<!-- Translate DocBook XML 4.2 public ids to local file names -->
<nextCatalog
catalog="/usr/share/sgml/docbook/xml-dtd-4.2/catalog.xml"/>
<!-- Translate URIs referring to the most current DocBook XSL
release, into paths in the local file system.
Note that the value of the rewritePrefix is a symlink
pointing to the currently installed version of the style
sheets -->
<rewriteURI
uriStartString="http://docbook.sourceforge.net/release/xsl/current/"
rewritePrefix="/usr/share/sgml/docbook/xsl-stylesheets/"/>
<!-- Translate URIs referring to the most current DocBook to
LaTeX XSL style sheets, into paths in the local file system.
Currently the local files are a CVS checkout. -->
<rewriteURI
uriStartString="http://db2latex.sourceforge.net/xsl/current/"
rewritePrefix="../../db2latex/"/>
</catalog>
<?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>
<rewriteSystem
systemIdStartString="http://localhost/xml/dtds/docbook4.1.2/"
rewritePrefix="/usr/share/sgml/docbook/xml-dtd-4.1.2-1.0-14/"/>
<!-- Translate DocBook XML 4.1.2 system ids to local file names -->
<rewriteSystem
systemIdStartString="http://www.oasis-open.org/docbook/xml/4.1.2/"
rewritePrefix="/usr/share/sgml/docbook/xml-dtd-4.1.2-1.0-14/"/>
<!-- Translate DocBook XML 4.1.2 public ids to local file names -->
<group
prefer="public"
xml:base="/usr/share/sgml/docbook/xml-dtd-4.1.2-1.0-14/" >
<nextCatalog catalog="docbook.cat"/>
</group>
<!-- Translate DocBook XML 4.2 system ids to local file names -->
<rewriteSystem
systemIdStartString="http://www.oasis-open.org/docbook/xml/4.2/"
rewritePrefix="/usr/share/sgml/docbook/xml-dtd-4.2-1.0-14/"/>
<!-- Translate DocBook XML 4.2 public ids to local file names -->
<nextCatalog
catalog="/usr/share/sgml/docbook/xml-dtd-4.2-1.0-14/catalog.xml"/>
<!-- Translate URIs referring to the most current DocBook XSL
release, into paths in the local file system.
Note that the value of the rewritePrefix is a symlink
pointing to the currently installed version of the style
sheets -->
<rewriteURI
uriStartString="http://docbook.sourceforge.net/release/xsl/current/"
rewritePrefix="/usr/share/sgml/docbook/xsl-stylesheets/"/>
<!-- Translate URIs referring to the most current DocBook to
LaTeX XSL style sheets, into paths in the local file system.
Currently the local files are a CVS checkout. -->
<rewriteURI
uriStartString="http://db2latex.sourceforge.net/xsl/current/"
rewritePrefix="../../db2latex/"/>
</catalog>
catalogs=../../../../docbook/catalog-redhat.xml
verbosity=1
prefer=public
static-catalog=yes
allow-oasis-xml-catalog-pi=yes
catalog-class-name=org.apache.xml.resolver.Resolver