(Comments inline...) On 04.05.2006 13:48:05 David wrote: > Dear members, > > I am getting problmes when getting generating the PDF file from using FOP. > I am using DocBook, vía Ant: > > <presetdef name="docbook"> > <java classname="com.icl.saxon.StyleSheet" fork="true" > dir="${doc.ref.src.dir}" > > > <classpath> > <fileset dir="${docbook.dir}/lib"> > <include name="**/*.jar" /> > </fileset> > <pathelement location="${build.testclasses.dir}/resource/config" /> > </classpath> > </java> > </presetdef> > > <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}" /> > <docbook classname="org.apache.fop.apps.Fop">
Add this to get more error info: <arg value="-d" /> > <arg value="${build.doc.ref.pdf.dir}/docbook_fop.tmp" /> > <arg value="${build.doc.ref.pdf.dir}/${name}.pdf" /> > </docbook> > > The temporal file generation is done, but after that I get the following > 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... > [docbook] [INFO] Using com.icl.saxon.aelfred.SAXDriver as SAX2 Parser > [docbook] [INFO] FOP 0.20.5 > [docbook] [INFO] Using com.icl.saxon.aelfred.SAXDriver as SAX2 Parser > [docbook] [INFO] building formatting object tree > [docbook] [INFO] setting up fonts > [docbook] [INFO] [1] > [docbook] [INFO] [2] > [docbook] [INFO] [1] > [docbook] [INFO] [2] > [docbook] [INFO] Parsing of document complete, stopping renderer > [docbook] [ERROR] null > [docbook] Java Result: 2 > BUILD SUCCESSFUL > Total time: 5 seconds > > so, the PDF file is not generated. > > I am trying to get more information about the error, but I have no > find the way. I have added, the line on my log4j.properties file, > withut success: > > org.apache.fop.apps.Fop = DEBUG That doesn't work because you're calling FOP's command-line in which case Ant simply captures the console output from FOP and redirects it to it own logger. BTW, there's a Fop Ant Task: http://xmlgraphics.apache.org/fop/0.20.5/anttask.html > so, I don't know what is going on, at the begining I thught it is a > problem with some docbook syntax, but it doesn't because for example if > I change the name of the URL on the <ulink> element then it fails, so > it should be something extrange, but I don't know. > > I am using the docbook library from: > > http://static.springframework.org/spring/files/docbook-reference-libs.zip > > Thanks, in advance for any inputs, > > David Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]