Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Dec 2003 04:18:03 +0100 (CET)
From:      "Cordula's Web" <cpghost@cordula.ws>
To:        joachim@dagerot.nu
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Converting XSL-FO toPDF?
Message-ID:  <200312220318.hBM3I2fu035795@fw.farid-hajji.net>
In-Reply-To: <200312212315.hBLNFS425334@thunder.trej.net> (message from Joachim Dagerot on Mon, 22 Dec 2003 00:15:28 %2B0100)
References:  <200312212315.hBLNFS425334@thunder.trej.net>

next in thread | previous in thread | raw e-mail | index | archive | help
>  | how can I convert an XSL-FO file to PDF?
>  | The XSL-FO file is generated by docbook XSL stylesheets.
>  |
>  | I've tried /usr/ports/textproc/fop, but it chokes with a
>  | lengthy exception dump after the first few pages; so it's
>  | of no use.
>  | 
>  | Unfortunately, /usr/ports/print/passivetex is broken as well,
>  | and won't install at all.
> 
> Have you tried the FOP java package from Apache?
> (http://xml.apache.org/fop/index.html)
> 
> I used to run that on my freeBSD and it gave me no problems. (The java
> installation however wasn't a walk in the sun)

/usr/ports/textproc/fop _is_ the version from Apache.  I've also tried
the cvs stable and devel versions, with the same result.  This doesn't
mean that fop doesn't work at all; it just chokes on _some_ files,
including what I'm trying to feed it.  Using native jdk1.3.1 with
fop. Tried bigger VM resource limits and all. FOP simply doesn't cut
it (yet?).

I'm hacking on a work-around right now: an XSLT stylesheet that
transforms (a very limited set of) DocBook markup directly to LaTeX
code, then post-process with latex. It's not perfect, and a lot of
boring, tedious DocBook <-> LaTeX mapping work, but at least, it
works (as said, for a small DocBook subset). At the very least,
it is an XSLT learning exercise... :-)

Someone really should fix the passivetex port though...

Thank you.

-- 
Cordula's Web. http://www.cordula.ws/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312220318.hBM3I2fu035795>