This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] catalog file runaround
- From: Webmaster <Webmaster at comtrol dot com>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Fri, 8 Apr 2005 12:03:40 -0500
- Subject: [docbook-apps] catalog file runaround
I've been playing around alot to try to get my catalog file to work. Finally
got somewhere and have been able to narrow it down to one problem:
"Error on line 66 column 1 of file://C:/XML/SDK/default.xml:
Error reported by XML parser: Cannot read from
file://C:/XML/SDK/dbnotnx.mod (C)
Transformation failed: Run-time errors were reported"
I don't know why it thinks that dbnotnx.mod should be in that directory, the
docbook is in c:/docbook/docbookx.dtd... dbnotnx.mod is in
c:/docbook/ent/dbnotnx.mod
<onemoretest>
If I change my catalogmanager.properities:
from
catalogs=catalog.xml
to
catalogs=catalog.xml;../docbook/docbook.cat
Then I get the error:
"Error on line 56 column 1 of file://C:/XML/SDK/default.xml:
Error reported by XML parser: Cannot read from
file://C:/XML/SDK/ent/iso-amsa.ent (C)
Transformation failed: Run-time errors were reported"
</onemoretest>
LN
docbook. 4.1.2 (unmodified), stylesheets 1.68.1, saxon 653
=======================================
DEFAULT.XML FILE: (located in C:\XML\SDK\)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book SYSTEM "file:///C:/bogus/docbookx.dtd" [
=======================================
CATALOG FILE: (located in c:\saxon)
<?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">
<!-- $STRUCTDIR$ -->
<rewriteSystem
systemIdStartString="file:///C:/bogus"
rewritePrefix="file:/C:/bogus" />
<group prefer="system" xml:base="file:///C:/">
<system
systemId="file:/C:/bogus/docbookx.dtd"
uri="DocBook/docbookx.dtd"/>
</group>
</catalog>
=====================================================
CATALOGMANAGER.PROPERTIES FILE: (located in c:\saxon\)
catalogs=catalog.xml
relative-catalogs=false
static-catalog=yes
catalog-class-name=org.apache.xml.resolver.Resolver
verbosity=2
=====================================================
COMMAND LINE (from a batch file):
java -cp
"c:\saxon\;c:\saxon\saxon.jar;c:\docbook-xsl\extensions\saxon653.jar;c:\saxo
n\resolver.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 -u %2 %STYLESHEET%