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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: docbook.xsl VS chunk.xsl (xalan problems!)


Hello,

I use Saxon as xslt processor and it works fine. I use as xsl entry file chunk.xsl because it generates several separate html files...
I use ant to execute the conversion. Here is the specific lines of my build.xml:

(...)

<property name="saxon.dir" value="${basedir}/src/lib/"/>
<property name="docbook.xsl.dir" value="${basedir}/src/docbookxsl"/>

(...)

<java classname="com.icl.saxon.StyleSheet"
dir="${html.dir}"
fork="true"
failonerror="true"
maxmemory="128m">
<arg value="${src.xml.dir}/doc.xml"/>
<arg value="${docbook.xsl.dir}/xhtml/chunk.xsl"/>
<classpath>
<pathelement location="${saxon.dir}/saxon.jar"/>
<pathelement path="${java.class.path}"/>
</classpath>
</java>

(...)

Templth


From: David Molloy <molloyda@eeng.dcu.ie>
Reply-To: molloyda@eeng.dcu.ie
To: docbook@lists.oasis-open.org
Subject: DOCBOOK: docbook.xsl    VS    chunk.xsl    (xalan problems!)
Date: Thu, 04 Jul 2002 17:53:24 +0100

Hi,
   I've been using docbook lately for writing some notes and
I really want to get them into multiple files rather than one
single cumbersome file.  Anyway, I tried using chunk.xsl
instead of docbook.xsl (which was working fine!) by entering
the xalan directory and typing:

java -cp
bin/xalan.jar;bin/xercesImpl.jar;bin/runtime.jar;bin/xsltc.jar;bin/xml-apis.
jar org.apache.xalan.xslt.Process -IN D:\EE557\notes\EE557.xml -PARAM
xalan.extensions 1 -XSL ../dbookxsl/html/chunk.xsl -OUT
D:\EE557\notes\index.html

However, using chunk.xsl I now get back:
(Location of error unknown)XSLT Error
(javax.xml.transform.TransformerConfigurationException):
java.xml.transform.TransformerException:
java.lang.ArrayIndexOutOfBoundsException

Could anyone please clarify to me what is going on please?  And if possible
a suggestion as to how to fix it please!
Thanks in advance,

David Molloy


More details:
JDK - tried jdk1.4.0, jdk1.3.1, jdk1.2.2 - identical problem for each
Xalan_Java 2
Windows 2k



_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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