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] Using FOP with figures

It finally has worked. I read that somewhere before but I put the 
parameter in the docbook.xsl stylesheet where I should have been 
changing it in the param.xsl stylesheet. Actually I believe that the 
Jimi classses are only needed if you use file formats such as .eps or 
.png as FOP has some set up natively. Thanks for your help.

Bob Stayton wrote:

> Hi,
> The error about 'xsl-region-body' can be fixed by setting the
> fop.extensions parameter to 1.  I don't think that is the reason
> your images are now showing up, though.  Carlos mentioned
> the Jimi classes for handling graphics, but those have been
> superceded by the JAI classes.  See the step "Download
> the graphics library files" in this reference:
> http://www.sagehill.net/docbookxsl/InstallingAnFO.html#InstallFop
> Bob Stayton
> Sagehill Enterprises
> bobs@sagehill.net
> ----- Original Message ----- 
> From: "Derek Poon" <poond@eeh.ee.ethz.ch>
> To: <docbook-apps@lists.oasis-open.org>
> Sent: Friday, December 19, 2003 3:30 AM
> Subject: [docbook-apps] Using FOP with figures
>>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:
>>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:
>>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
>>       <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
>>To unsubscribe from this list, send a post to
> docbook-apps-unsubscribe@lists.oasis-open.org, or visit
> http://www.oasis-open.org/mlmanage/.

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