You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Nigel Hardy <nw...@aber.ac.uk> on 2005/12/12 18:34:36 UTC

Image path

I am using 0.7 and org.apache.forrest.plugin.output.pdf.

I am using the pdf output on some fo of my own (rather than using 
"document" etc.)

The fo contains an <fo:external-graphic> element. The src attribute has 
a relative filename. If I run an fo processor (FOP) outside Forrest the 
graphics file is found. It is not found under Forrest. If the src 
attribute is an absolute filename (or an http URL) it is found.

Absolute pathnames will be difficult to generate.

Any suggestions? Is there a switch somewhere? Is there a Forrest 
shorthand for "PWD"?

Nigel Hardy

-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%lt%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Nigel Hardy     Tel: +44 1970 622 434.   http://users.aber.ac.uk/nwh/
Dept. Computer Sci,  University of Wales, Aberystwyth, SY23 3DB, UK
Adran Cyfrifiadureg, Prifysgol Cymru,     Aberystwyth, SY23 3DB, UK


Re: Image path

Posted by Nigel Hardy <nw...@aber.ac.uk>.
Nigel Hardy wrote:

> I am using 0.7 and org.apache.forrest.plugin.output.pdf.
>
> I am using the pdf output on some fo of my own (rather than using 
> "document" etc.)
>
> The fo contains an <fo:external-graphic> element. The src attribute 
> has a relative filename. If I run an fo processor (FOP) outside 
> Forrest the graphics file is found. It is not found under Forrest. If 
> the src attribute is an absolute filename (or an http URL) it is found.
>
I have solved my own problem.

> Absolute pathnames will be difficult to generate.

They are not. I have used <parameter> in the <transform> element of the 
map and told the xslt where to find the images. Simple really ;-)

Nigel

-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%lt%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Nigel Hardy     Tel: +44 1970 622 434.   http://users.aber.ac.uk/nwh/
Dept. Computer Sci,  University of Wales, Aberystwyth, SY23 3DB, UK
Adran Cyfrifiadureg, Prifysgol Cymru,     Aberystwyth, SY23 3DB, UK