This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Setting up CatalogManager.properties on Mac OS X for use with DocBook
- From: Scott Anguish <sanguish at digifix dot com>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Tue, 8 Apr 2003 18:43:58 -0400
- Subject: [docbook-apps] Setting up CatalogManager.properties on Mac OS X for use with DocBook
I'm having a devil of a time getting this setup on Mac OS X.
I've installed and have saxon and Docbook working, but I want to take
advantage of the catalog resolving features.
I've downloaded resolver.jar and placed it at
/Library/Java/Extensions/ which is in my CLASSPATH
Also in /Library/Java/Extensions/ there is a file called
CatalogManager.properties which contains
catalogs=/Library/Java/Extensions/catalog.xml
relative-catalogs=false
static-catalog=yes
catalog-class-name=org.apache.xml.resolver.Resolver
verbosity=1
Also in /Library/Java/Extensions/ there is a file called catalog.xml
containing
<?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">
<!-- DTD and stylesheet files installed under /usr/local/share/xml -->
<group xml:base="/usr/local/share/xml/" >
<!-- Resolve DTD URL system ID to local file -->
<rewriteSystem
systemIdStartString="http://www.oasis-open.org/docbook/xml/4.2/"
rewritePrefix="docbook-4.2/" />
<!-- Resolve stylesheet URL to local file -->
<rewriteURI
uriStartString="http://docbook.sourceforge.net/release/xsl/current/"
rewritePrefix="docbook-xsl-1.60.1/" />
<!-- Resolve DTD PUBLIC identifiers -->
<nextCatalog catalog="docbook42/catalog.xml" />
<!-- To resolve simple DTD SYSTEM identifiers -->
<!-- Note: this does not work with Java resolver classes in Saxon
or Xalan -->
<system
systemId="docbook.dtd"
uri="docbook-4.2/docbookx.dtd" />
<!-- To resolve short stylesheet references -->
<uri
name="docbook.xsl"
uri="docbook-xsl-1.60.1/html/docbook.xsl" />
<uri
name="chunk.xsl"
uri="docbook-xsl-1.60.1/html/chunk.xsl" />
<uri
name="fo-docbook.xsl"
uri="docbook-xsl-1.60.1/fo/docbook.xsl" />
</group>
</catalog>
However, running it with
java 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 -o myfile.html
htmleditorx-1.xml docbook.xsl
or even
java -cp "/Library/Java/Extensions" 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 -o myfile.html
htmleditorx-1.xml docbook.xsl
gives me the following errors...
Cannot find CatalogManager.properties
Cannot find CatalogManager.properties
Cannot find CatalogManager.properties
Cannot find CatalogManager.properties
Cannot find CatalogManager.properties
Cannot find CatalogManager.properties
Transformation failed: java.io.EOFException: no more input
Why can't it find the CatalogManager.properties file? where should I
be putting it? It's in my classpath.
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe at lists dot oasis-open dot org
For additional commands, e-mail: docbook-apps-help at lists dot oasis-open dot org