Have a look into the log files (something like FileNotFoundException) and look, how the path is resolved. Furthermore is it possible to look at the XSL FO after MYPATHBASE is evaluated?

Joerg

Robert Sösemann wrote:
My image was also very small. This could not be the reason. Maybe you could
send me some of your code snippets.

Robert
----- Original Message -----
From: "Ludovic de Beaurepaire" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 03, 2002 5:51 PM
Subject: Re: dynamic xsl:fo image inclusion



Hi robert,

I solved this problem this afternoon :-) there were no error message in
the

logs, and the cause was a too large image. try with a small jpg.

Regards,

Ludovic
----- Original Message -----
From: "Robert Sösemann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 03, 2002 5:21 PM
Subject: dynamic xsl:fo image inclusion



I tried every tip I could find on the web, but I never had success
including

an jpg into an pdf with cocoon.
Maybe sombody can help?

Thats what I have:

XSL:FO fragment transforming IMG tags:

  <xsl:template match="IMG">
       <fo:inline>
           <fo:external-graphic src="url(MYPATHBASE/{$src})"/>
       </fo:inline>
  </xsl:template>

MYPATHPATH is changed to the real cocoon base path before serializing.
So

the serializer should request the image in a correct way, that it is
caugth

by this sitemap matcher:

           <map:match pattern="**.jpg">
               <map:read mime-type="image/jpg"
src="resources/{1}.jpg"/>

           </map:match>

Why do I never get to see an image in my pdf`?

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to