You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Michael Engelhart <me...@earthtrip.com> on 2002/03/11 23:51:35 UTC
Logger not set
Hi all,
Does it matter if I just ignore setting the logger? I already have an
application built around using Log4J and it seems silly to instantiate
another logging system just to output 3 lines every time I run FOP. I
just want to make sure that there isn't anything critical to the
setLogger method
thanks
Mike
external-graphic src syntax
Posted by Michael Engelhart <me...@earthtrip.com>.
Can someone show me the syntax to using
<fo:external-graphic>??
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"/>
</fo:block>
this syntax:
<fo:block text-align="center">
<fo:external-graphic src="file:./logo.jpg"/>
</fo:block>
this syntax:
<fo:block text-align="center">
<fo:external-graphic src="file://./logo.jpg"/>
</fo:block>
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 images.fo 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
"http://somewhere.com/logo.jpg" but when I do it that way my application
hangs and never comes back.
any ideas??
Re: Logger not set
Posted by Tomasz Pik <pi...@ais.pl>.
Michael Engelhart wrote:
> Hi all,
>
> Does it matter if I just ignore setting the logger? I already have an
> application built around using Log4J and it seems silly to instantiate
> another logging system just to output 3 lines every time I run FOP. I
> just want to make sure that there isn't anything critical to the
> setLogger method
Maybe it will be better to use Commons Logging package inside fop
instead of Avalon LogKit - somebody may configure Logging to
use LogKit, somebody to use Log4j.
Regards
Tomek Pik
pikus@ais.pl
>
> thanks
> Mike
>
Re: Logger not set
Posted by Michael Engelhart <me...@earthtrip.com>.
Hi all,
Does it matter if I just ignore setting the logger? I already have an
application built around using Log4J and it seems silly to instantiate
another logging system just to output 3 lines every time I run FOP. I
just want to make sure that there isn't anything critical to the
setLogger method
thanks
Mike