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] Image location


On Sat, Oct 1, 2011 at 05:33, Lars Vogel <lars.vogel@googlemail.com> 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


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