With my SimpleUriResolver() you must use xsl as follow:

<fo:block>
 <fo:external-graphic src="url('logo.gif')"/>
</fo:block>

if logo.gif is in your classpath root element, it will work.

Philippe

2010/2/18 Georg Datterl <gdatt...@geneon.de>

> Hi pjmorce,
>
> Assuming TstFOP.jar is on the server and found by your application server,
> what happens if you use
>
> <fo:block>
>  <fo:external-graphic src="url('file:TstFOP.jar!/img/logo.gif')"/>
> </fo:block>
>
>
> Mit freundlichen Grüßen
>
> Georg Datterl
>
> ------ Kontakt ------
>
> Georg Datterl
>
> Geneon media solutions gmbh
> Gutenstetter Straße 8a
> 90449 Nürnberg
>
> HRB Nürnberg: 17193
> Geschäftsführer: Yong-Harry Steiert
>
> Tel.: 0911/36 78 88 - 26
> Fax: 0911/36 78 88 - 20
>
> www.geneon.de
>
> Weitere Mitglieder der Willmy MediaGroup:
>
> IRS Integrated Realization Services GmbH:    www.irs-nbg.de
> Willmy PrintMedia GmbH:                            www.willmy.de
> Willmy Consult & Content GmbH:                 www.willmycc.de
>
>
> -----Ursprüngliche Nachricht-----
> Von: pjmorce [mailto:pjcarva...@gmail.com]
> Gesendet: Donnerstag, 18. Februar 2010 11:47
> An: fop-users@xmlgraphics.apache.org
> Betreff: Re: [ERROR] Image not found
>
>
> I tried your suggestion:
>
> in the XSL I have now the following code and the problem remains:
>
> <fo:block>
>  <fo:external-graphic src="url('file:/img/logo.gif')"/>
> </fo:block>
>
> However, i also tried to put this and it worked:
>
> <fo:block>
>  <fo:external-graphic
>
> src="jar:file:///D:/eclipse_galileo/eclipse/TstFOP/TstFOP.jar!/img/logo.gif"/>
> </fo:block>
>
> It worked, but obvious reasons I cannot put this on the XSL that will be on
> production... :(
>
>
>
> Hi,
>
> It is more of a URL problem, try pass URL 'file:/img/logo.gif' instead
> of relative path.
>
> Thanks,
> Venkat.
>
> philippe voncken wrote:
> > Hi,
> >
> > you must implementing the UriResolver and set your fopFactory with it.
> >
> > fopFactoy.setUriResolver()
> >
> > regards,
> > Philippe
> >
>
> --
> View this message in context:
> http://old.nabble.com/-ERROR--Image-not-found-tp27636263p27637052.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>

Reply via email to