OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: Re: DOCBOOK-APPS: Re: Processing Docbook with Xalan 2.4 and Java 1.4.1

On Tue, Nov 05, 2002 at 07:27:54AM -0500, Norman Walsh wrote:
> 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

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC