Hmm.  Now that I know the syntax it works.

Maybe I was just screwing put the long path name..

On Wednesday, March 13, 2002, at 06:58  AM, Magnus Sj÷berg wrote:

I use Fop 0.20.2 and as long as the path to the imagefile is
absolute, it works.

Like so: <fo:external-graphic

Also, there is an entry in Fop's config.xml where you can
set the basedir but the comment says 'not implemented'.
If, and when this entry gets supported, that should be the
place where you specify the basedir, enabling relative file


Klosa Uwe wrote:

It works only with fop0_19_0. All fop0_20_x has the same error. I've tried
it in two days now.


-----Ursprungligt meddelande-----
Fran: Michael Engelhart [mailto:[EMAIL PROTECTED]
Skickat: den 12 mars 2002 16:28
Amne: external-graphic src syntax

Can someone show me the syntax to using

I have an image in the same directory as the stylsheet and have tried
this syntax:

<fo:block text-align="center">
     <fo:external-graphic src="logo.jpg"/>

this syntax:

<fo:block text-align="center">
     <fo:external-graphic src="file:./logo.jpg"/>

this syntax:
<fo:block text-align="center">
     <fo:external-graphic src="file://./logo.jpg"/>

and none of them work.  I always get this error:
[ERROR]: Error while creating area : Error with image URL: ./logo.jpg
(No such file or directory) and no base directory is specified

I have compared this to the example document as well as the
W3C XSL spec and it doesn't work.
I can sort of get it to work using an external url like
""; but when I do it that way my application
hangs and never comes back.

any ideas??

Reply via email to