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

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 <tom.browder@gmail.com>
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.



To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

http://www.vogella.de - Eclipse, Android and Java Tutorials
http://www.twitter.com/vogella - Lars on Twitter

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