This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Re: Processing Docbook with Xalan 2.4 and Java 1.4.1
- From: Bob Stayton <bobs at caldera dot com>
- To: Norman Walsh <ndw at nwalsh dot com>, vhikida at inreach dot com
- Cc: docbook-apps at lists dot oasis-open dot org, thuss at urbanasoft dot com
- Date: Mon, 11 Nov 2002 12:08:49 -0800
- Subject: Re: DOCBOOK-APPS: Re: Processing Docbook with Xalan 2.4 and Java 1.4.1
- References: <64634.66.32.188.101.1035394801.squirrel@webmail.inreach.com><61219.66.32.188.101.1035397025.squirrel@webmail.inreach.com><878z086w1h.fsf@nwalsh.com>
On Tue, Nov 05, 2002 at 07:27:54AM -0500, Norman Walsh wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> [ Follow-ups to docbook-apps, please ]
>
> / vhikida@inreach.com was heard to say:
> | I just downloaded docbook-xsl-1.57.0 and I made some progress. The TOC's
> | now appear correctly in the html however there is some problem still with
> | the links. In the html I am getting <a href="ch01.htmlch01.html"> instead
> | of <a href="ch01.html">.
>
> Can you send me a small document that demonstrates this problem?
>
> |> Is there a way for me to get Xalan to work correctly under Java 1.4.1.
>
> I'm not sure.
I'm able to process book-length documents with the
Docbook XSL 1.57.0 stylesheets using Xalan 2.4.1
running under Java 1.4.1_01 on Windows XP.
The TOC references are all correct, and everything seems to work.
The command I use looks like this:
java \
-Djava.endorsed.dirs="../xalan241/bin" \
-cp "../xalan241/bin/xalan.jar;../xalan241/bin/xercesImpl.jar" \
org.apache.xalan.xslt.Process \
-in book.xml \
-param base.dir xalanout/ \
-xsl ../docbook-xsl-1.57.0/html/chunk.xsl
I think the trick is setting the -Djava.endorsed.dirs option
to include the directory containing the newer Xalan
jar files, to override the Xalan that ships with
Java 1.4. Without that option, it fails.
You can check your Xalan version. I use:
java org.apache.xalan.xslt.EnvironmentCheck
which indicates the old version:
version.xalan2=Xalan;Java;Xalan Java 2.2.D11;
while the command:
java -Djava.endorsed.dirs="../xalan241/bin" org.apache.xalan.xslt.EnvironmentCheck
yields the new version:
version.xalan2x=Xalan Java 2.4.1
Hope this helps.
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
Caldera International, Inc. fax: (831) 429-1887
email: bobs@caldera.com