OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Generating PDF from docbook on Linux (OSS)


Am Sonntag, den 24.01.2010, 11:04 +0100 schrieb Mathieu Malaterre:
> On Sat, Jan 23, 2010 at 4:41 PM, Daniel Leidert
> <daniel.leidert.spam@gmx.net> wrote:
> > Am Freitag, den 22.01.2010, 19:15 +0100 schrieb Daniel Leidert:
> >> Am Freitag, den 22.01.2010, 18:19 +0100 schrieb Mathieu Malaterre:
> >>
> >> [..]
> >> > $ fop -xsl /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl
> >> > -xml /tmp/math.xml -pdf foo.pdf
> >> [..]
> >> > Jan 22, 2010 6:10:33 PM org.apache.fop.fo.ElementMappingRegistry findFOMaker
> >> > WARNING: Unknown formatting object http://www.w3.org/1998/Math/MathML^math
> >>
> >> SAee the first URL I gave you.
> >
> > It works to put the find_jars line into ~/.foprc. Do it is not required
> > to touch the fop script.
> 
> Here it goes again:
> 
> $ fop -xsl /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl
> -xml /tmp/math.xml -pdf foo.pdf
> /home/mathieu/.foprc: line 1: find_jars: command not found

I'm running Sid. It might be that in stable the /usr/bin/fop script does
not make use of /usr/lib/java-wrappers/java-wrappers.sh, which provides
the find_jars() function or that the function was renamed in
Squeeze/Sid.

In Sid it works via find_jars in .foprc.

> Searching on the net it seems I simply need to append those jar file
> to CLASSPATH, so instead I tried:
> 
> $ CLASSPATH=/usr/share/java/jeuclid-fop.jar:/usr/share/java/jeuclid-core.jar
> fop -xsl /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl -xml
> /tmp/math.xml -pdf foo.pdf
> /home/mathieu/.foprc: line 1: find_jars: command not found
> Jan 24, 2010 10:59:18 AM org.apache.fop.cli.InputHandler warning
> WARNING: javax.xml.transform.TransformerException: Making portrait
> pages on USletter paper (8.5inx11in)
> Jan 24, 2010 10:59:18 AM org.apache.fop.cli.InputHandler warning
> WARNING: javax.xml.transform.TransformerException: Read
> /usr/share/doc/docbook-xsl/README.Debian.gz section 5(a).
> Exception in thread "main" java.lang.NoSuchMethodError:

Well, this also doesn't work on Sid, where it dies with "network
down"-like messages. However, the issue might simply be, that by using
the docbook-xsl stylesheet directly with fop it misses to set
fop1.extensions. One could write a minimal stylesheet, that imports
docbook.xsl and sets fop1.extensions. But I don't know, if this will
help you. Looks like the issue is somehow caused by libjeuclid-fop-java.

Regards, Daniel



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]