This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Using FOP with figures
- From: Derek Poon <poond at eeh dot ee dot ethz dot ch>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Fri, 19 Dec 2003 12:30:27 +0100
- Subject: [docbook-apps] Using FOP with figures
Hi,
I was wondering if anyone could help me with a problem that I am having
using fop to generate pdf from docbook xml.
I am using the following: docbook xsl stysheets 1.64.0, saxon (to
generate the fo objects), fop 0.20.5
The problem occurs when I insert a figure in the docbook xml source such as:
<figure id="image_segments">
<title>Some Title</title>
<graphic fileref="images/logo.gif"/>
</figure>
fop doesn't seem to like this and gives me the following error:
file:/home/poond/flowdemo/cvs_trunk/docu/book/build.xml:118:
org.apache.fop.apps.FOPException: file:
/home/poond//cvs_trunk/docu/book/build/book_pdf_en/book.fo:1:65589 Flow
'xsl-region-body' does not map to the region-body in page-master 'blank'
I am using the following FO stylesheet:
${docbook.xsl.stylesheet}/fo/profile-docbook.xsl
btw I am using ant to compile the XML and the tasks are defined as follows:
<taskdef name="fop"
classname="org.apache.fop.tools.anttasks.Fop">
<classpath>
<pathelement location="${fop.dir}/build/fop.jar"/>
<pathelement
location="${fop.dir}/lib/avalon-framework-cvs-20020806.jar"/>
<pathelement location="${fop.dir}/lib/batik.jar"/>
</classpath>
</taskdef>
<target name="pdfen" depends="init">
<java classname="com.icl.saxon.StyleSheet"
classpath="../../lib/saxon.jar"
fork="yes"
>
<arg line="-o ${book_en}/book.fo"/>
<arg line="${source}/book_en.xml"/>
<arg line="${docbook.xsl.stylesheet}/fo/profile-docbook.xsl"/>
<arg line="profile.lang=en"/>
</java>
<fop format="application/pdf"
fofile="${book_en}/book.fo"
outfile="${book_en}/book.pdf" />
<delete file="${book_en}/book.fo" />
</target>
HTML generation from the docbook XML source works fine.
Could anybody suggest to me what is wrong?
I searched around on the FOP mailing list and found a reference to this
error which stated:
>This indicates a mismatch between the region name declared on the
>flow and the actual page master's body region. This is most probably
>a bug in the DocBook XSL, ask there.
I searched round this list and couldn't find anything, so thus I post my
question.
Thanks,
Derek
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.