This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Java and docbook xsl again
- From: Wendy Smoak <java at wendysmoak dot com>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Thu, 17 Feb 2005 17:39:15 -0700
- Subject: Re: [docbook-apps] Java and docbook xsl again
- References: <6.2.1.2.2.20050217201308.01fbba48@localhost>
Thanks to Pierre and Ian! It finally works.
With Ant 1.6.2 and Xalan-J 2.6.0, it _seems_ to be sufficient to
- delete Encodings.properties from xalan.jar
- place the modified xalan.jar in $JAVA_HOME/jre/lib/endorsed
(See: http://www.mail-archive.com/user@ant.apache.org/msg08711.html )
Now the Ant xslt (or style) task will convert docbook XML into FO. Simple
example:
<target name="xslt" description="Converts docbook xml to fo">
<xslt in="newbook.xml"
out="newbook.fo"
style="c:/java/docbook-xsl-1.68.1/fo/docbook.xsl" />
</target>
Ian's example of using Saxon directly with a <java> task also works fine.
Dave, you're welcome to lift and/or adapt anything of mine for your
tutorial, but it looks like you're using Saxon directly so it may not be
applicable. BTW, you shouldn't have to go through ant.jar to run it, just
$ANT_HOME/bin/ant ought to work.
The whole story lives here:
http://wiki.wendysmoak.com/cgi-bin/wiki.pl?DocBookToPDF
I have no idea if this is the best way, or even if it's correct, just that
it works so far.
--
Wendy Smoak