Next in thread → Next in month →

Re: [docbook-apps] Image location

From
Lars Vogel <>
Date
2011-10-01T20:56:57+00:00
ID
Thread
Re: [docbook-apps] Image location
Hello,

I found the parameter "keep.relative.image.uris" which reduces my complexity. This way I have to copy the images only to one location relatively to the build.xml. I would be still nicer if I could configure the FOP task to use a  path relative to the .fo file but I assume this is not really a question for the docbook mailing list.

Thanks to everyone.

Best regards, Lars

2011/10/1 Lars Vogel <>

Hi Tom,

I would prefer if the path could just be relative to the .fo file. Introducing a xml catalog and a new re-write rule seems unnecessary complex. 

I could fix it within my ant tasks copying the images into the build project but this doesn't not seem like a solid solution to me. 

Best regards, Lars

2011/10/1 Tom Browder <>

On Sat, Oct 1, 2011 at 05:33, Lars Vogel <> wrote:

...

> If I put the graphics relativ to the build.xml (which I keep separated from

> the content) everything works.

> The Ant File I'm currently using is:

> ---------------

> <target name="build-pdf" depends="clean, copybookimage,  xinclude"

> description="Generates pdf files from DocBook XML">

> <!-- Convert DocBook Files into FO -->

> <xslt style="${fo.stylesheet}" extension=".fo" basedir="${outputtmp.dir}"

> destdir="${fobtmp.dir}">

> <include name="**/*/article.xml" />

> <param name="section.autolabel" _expression_="1" />

> <param name="page.margin.inner" _expression_="1cm" />

> <param name="page.margin.outer" _expression_="1cm" />

> <param name="body.start.indent" _expression_="0mm" />

> <param name="double-sided" _expression_="1" />

> <param name="paper.type" _expression_="A4" />

> </xslt>

> <!-- Convert FO Files into pdf -->

> <fop format="application/pdf" outdir="${pdf.dir}">

> <fileset dir="${fobtmp.dir}">

> <include name="**/*.fo" />

> </fileset>

> </fop>

> </target>

> --------------

>

> Is there a way to tell the fop Ant Task to use a path relativ to the .fo

> file is processes?

> Best regards, Lars

Have you tried xml catalog with the prefix rewrite rule to generate

fo?  That has solved a lot of path problems for me.  Of course I'm

using xsltproc with which that is easy--don't know if an ant and

whatever tool chain will work.

Best,

-Tom

---------------------------------------------------------------------

To unsubscribe, e-mail: 

For additional commands, e-mail: 
Next in thread → Next in month →