This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: [docbook-apps] jdk 1.5 and docbook xsl
- From: "Mauritz Jeanson" <mj at johanneberg dot com>
- To: "'Pierre Attar'" <pat at tireme dot fr>, <docbook-apps at lists dot oasis-open dot org>
- Date: Sun, 23 Jan 2005 20:41:15 +0100
- Subject: RE: [docbook-apps] jdk 1.5 and docbook xsl
> -----Original Message-----
> From: Pierre Attar
>
> Hi, I try to use the latest docbook distribution with the
> latest sun jdk
> and got an error while compiling the stylesheet saying, in
> french, that the
> compiled stylesheet can not be loaded (translet class problem).
>
> In french :
> (Emplacement inconnu de l'erreur)Erreur XSLT
> (javax.xml.transform.TransformerConfigurationException): Chargement
> impossible de la classe translet 'db2html'.
It might be interesting to know that other people also have had trouble with
DocBook stylesheets and XSLTC. See this post:
http://sources.redhat.com/ml/docbook-apps/2004-q1/msg00212.html
I tried to compile fo/docbook.xsl myself from the command line and got the
following messages:
Compiler warnings:
file:/c:/doctypes/docbook/xsl/fo/formal.xsl: line 490: Attribute
'border-left-style' outside of element.
file:/c:/doctypes/docbook/xsl/fo/formal.xsl: line 491: Attribute
'border-right-style' outside of element.
file:/c:/doctypes/docbook/xsl/fo/formal.xsl: line 492: Attribute
'border-top-style' outside of element.
file:/c:/doctypes/docbook/xsl/fo/formal.xsl: line 493: Attribute
'border-bottom-style' outside of element.
Compiler errors:
The first argument to the non-static Java function 'insertCallouts' is not
a valid object reference.
Cannot find external method 'com.nwalsh.xalan.Verbatim.insertCallouts'
(must be public).
The command was (on JDK 1.4.2, see
http://xml.apache.org/xalan-j/xsltc/index.html#compiler):
java -Djava.endorsed.dirs=c:/Java/xalan-j_2_6_0/bin -cp
c:/Java/xalan-j_2_6_0/bin/xalan.jar;../xsl/extensions/xalan25.jar
org.apache.xalan.xsltc.cmdline.Compile -j fo.jar ../xsl/fo/docbook.xsl
When I tried the same on html/docbook.xsl, the result was this:
Compiler errors:
Error checking type of the expression
'org.apache.xalan.xsltc.compiler.ApplyTemplates@17a8a02'.
I'm sorry to say I don't know how to work around these problems.
/MJ