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 picture 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?

Thanks in advance,
Derek
--
-------------------------------------------
 Derek Poon - EEH Power Systems Laboratory
 [EMAIL PROTECTED]
 TEL: +41 1 632 78 42
 Fax: +41 1 632 12 52
-------------------------------------------


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to