Dear Jeremias Maerki,
 
Thanks, for your interesest again, I am following your recomendation with the following results:
 
>Must be something about text inside a list-item-body. The line number in
LineArea.java indicates that there may be something wrong with
hyphenation. You could try to switch off hyphenation to see if there's
any difference.
I guess it too, it is a problem about the the text length, because it ocurres at variables possition on the original text.
 
About to swith hyphenation please clarify again my ignorance, :-), because I have no idea about how to swith off this.
 
I thought to add some attribute in the <book> node definition but I have no found such attribute. I use the following definition:
 
<book lang="es">

Trying with your second suggestion:
 
>I'd say this is a bug in FOP 0.20.5. But since we don't do any bugfixing
anymore on this version, you might want to consider upgrading to the
latest release, 0.92beta.
 
I have downloaded it, but now I get another error:
 
Buildfile: P:\LRA\build.xml
check-build-doc:
doc2pdf:
[echo] INFO(lra): Generating intermediate file...
[docbook] Making portrait pages on A4 paper (210mmx297mm)
[echo] INFO(lra): Generating pdf file...
[fop] P:\LRA\build\doc\pdf\docbook_fop.tmp -> P:\LRA\build\doc\pdf\lra.pdf
BUILD FAILED
P:\LRA\build.xml:976: javax.xml.transform.TransformerException: org.apache.fop.apps.FOPException: file:///P:/LRA/build/doc/pdf/docbook_fop.tmp:1:23534: Error(1/23534): No element mapping definition found for fox:outline
Total time: 7 seconds
 
What I did was to just put on the classpath the *.jar on the FOP beta distribution, but still using the *.xsl files from:
 
http://static.springframework.org/spring/files/docbook-reference-libs.zip
 
that use DocBook 4.2 version.
 
so before generating the PDF file I produce a temporary file with the following command:
 
 <presetdef name="docbook">
  <java classname="com.icl.saxon.StyleSheet" fork="true" dir="${doc.ref.src.dir}"
   >
   <classpath>
    <path refid="junit.classpath"/>
    <fileset dir="${docbook.dir}/lib">
     <include name="**/*.jar" />
    </fileset>
   </classpath>
  </java>
 </presetdef>
 
 <target name="doc2pdf" depends="check-build-doc" description="Compile reference documentation to pdf">
  <echo level="info" message="${message.docbook.generatingTmpFile}" />
  <docbook failonerror="true">
   <arg value="-o" />
   <arg value="${build.doc.ref.pdf.dir}/docbook_fop.tmp" />
   <arg value="index.xml" />
   <arg value="styles/fopdf.xsl" />
  </docbook>
  <echo level="info" message="${message.docbook.generatingPdfFile}" />
  <fop format="application/pdf"
   basedir="${build.doc.ref.pdf.dir}"
   fofile="${build.doc.ref.pdf.dir}/docbook_fop.tmp"
   messagelevel="verbose"
      outfile="${build.doc.ref.pdf.dir}/${name}.pdf" />
 </target>
 
Please let me know any suggestion,
 
David


Get amazing travel prices for air and hotel in one click on Yahoo! FareChase

Reply via email to