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]
Other format: [Raw text]

Chunking with Xalan


I posted this to the "general" list, but I think it would be more
appropriate here (I am still having difficulties).   I am basically looking
for more clarification on how to do chunking w/Xalan.  I can do:

java org.apache.xalan.xslt.Process -in test.xml -xsl
docbook/html/docbook.xsl -out test.html

And I get the (single) html output.  Likewise, I have had success with the
FO output.  But the chunking has never worked for me -- I have tried the
html/chunk.xsl stylesheet, as well as the expchunk.xsl,
chunk-experimental.xsl, chunker.xsl, the htmlhelp stuff... and so forth.

Someone pointed out that I needed to apply the xalan extensions, but I can't
get anything to work using that, either -- the exact command line I am using
is

java org.apache.xalan.xslt.Process -param xalan.extensions 1 -in test.xml
-xsl docbook/html/chunk.xsl

(I get the ArrayIndexOutOfBoundsException mentioned below -- basically same
results as without extensions).

I am using the xsl-1.48 docbook stuff.  On the Java side, I have tried jdk
1.3.1 with xalan 2.3.0, 2.2, 2.1.0, and 2.0.1.  I have also tried it with
whatever version of Xalan and Xerces that came bundled with Fop 2.3.0rc, as
well as against the version of Xalan bundled with jdk 1.4.  I get various
different errors with each of these, but a common error I get when running
the xalan processor is

(Location of error unknown)XSLT Error
(javax.xml.transform.TransformerConfigurationException):
javax.xml.transform.TransformerException:
java.lang.ArrayIndexOutOfBoundsException

I get _some_ sort of progress if I run against expchunk.xsl (it looks like
it's trying to do something), but I get an error indicating it can't find
.chunks in the current directory (if I understand correctly, this is sort of
a "temp" file created by the chunking process?).

Any help would be greatly appreciated -- an example environment setup, or
command-line examples.  I am probably just missing some obvious
configuration item, but it is quite frustrating.  Anything you can offer
(versions of Xalan/Saxon/whatever that are known to work -- I don't mind
switching what I'm using) would be great.  Thanks!

Eric
 
**************************************************************************
The information transmitted herewith is sensitive information intended only
for use by the individual or entity to which it is addressed. If the reader
of this message is not the intended recipient, you are hereby notified that
any review, retransmission, dissemination, distribution, copying or other
use of, or taking of any action in reliance upon this information is
strictly prohibited. If you have received this communication in error,
please contact the sender and delete the material from your computer.


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