This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problem with chunk.xsl and Xalan


> From: Enrique Bengoechea <ebengoechea@europstat.com>
> 
> I'm new to DocBook, so excuse me if this has been previous thread. I've
> scanned the archives without success.
> 
> I have a problem "chunking" a docbook XML document. My environment is:
> 
>  * DocBook 4.0 DTD 4.1.2
>  * Norman Walsh's XSL stylesheets for HTML, v1.25
>  * Xalan 1.2.2 with Xerces 1.2.2 (JDK v1.2.2_01)
>  * Windows NT Workstation 4.0
> 
> I can get the output in a single document using docbook.xsl, but when I try
> with chunk.xsl, I get a lot of errors stating that "parent of xsl:fallback
> must be an extension element!"

I can't solve your problem, but I can tell you this
combination does work with chunking on my Linux system:

   - DocBook 4.0 DTD 4.1.2
   - Norman Walsh's XSL stylesheets for HTML, v1.25
   - Xalan 1.2.2 with Xerces 1.2.2 (JDK v1.2.2_01)
   - java version "1.2.2"
     Classic VM (build 1.2.2-L, green threads, nojit)
   - Caldera Linux

I just downloaded the latest Xalan-J (xalan-j_1_2_2.tar.gz)
package, unpacked it, and ran this script with success:

#!/bin/sh
XALAN=/home/bobs/xalan-j_1_2_2
DBXSL=/home/bobs/docbookxsl.125
INPUT=$DBXSL/test/book.xml
OUTPUT=/tmp/book.html
STYLESHEET=chunk.xsl

CLASSPATH=$XALAN/xerces.jar:$XALAN/xalan.jar:$XALAN/bsf.jar
export CLASSPATH

java org.apache.xalan.xslt.Process \
       -in $INPUT  \
       -xsl file://$DBXSL/html/$STYLESHEET \
       -out $OUTPUT

So I think Norm and Xalan did finally resolve the xsl:fallback
problem.

And, yes, Xalan is slow to parse the Docbook stylesheets.
They are big!

bobs
Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The Santa Cruz Operation, Inc.              fax:   (831) 429-1887
                                            email: bobs@sco.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]