cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niket Anand" <niketan...@npi.stpn.soft.net>
Subject Re: Images to PDF using Cocoon
Date Fri, 28 Jun 2002 14:23:51 GMT
Give full url to jpg file
<fo:block>
     <fo:external-graphic display-align="right"
src="http://.../images/h39.jpg"/>
</fo:block>
----- Original Message -----
From: "Peter Sparkes" <peter@didm.co.uk>
To: <cocoon-users@xml.apache.org>
Sent: Friday, June 28, 2002 7:43 PM
Subject: Images to PDF using Cocoon


> HI,
>
> Help please,
>
> I am using Cocoon version 2.1-dev to convert XML to PDF. All is fine
except
> I can't get the images to display.
>
> My sitemap entry is:
>
>        <map:match pattern="wl.pdf">
>         <map:generate src="docs/wl/wlH39.xml"/>
>         <map:transform src="stylesheets/wl/wl2fo.xsl"/>
>         <map:serialize type="fo2pdf"/>
>       </map:match>
>
>       <map:match pattern="h39.jpg">
>         <map:read mime-type="image/jpg" src="docs/wl/h39.jpg"/>
>       </map:match>
>
> and my xsl for the image is:
>                <fo:block>
>                          <fo:external-graphic  src="h39.jpg" />
>               </fo:block>
> and I have tried:
>               <fo:block>
>                   <fo:external-graphic src="file:h39.jpg"/>
>               </fo:block>
>
> I have also tried putting the jpg in the same directory as the xsl file on
> the assuption that FOP would use a path relative the the XSL file
directory.
>
> Peter
>
>
>
> ---------------------------------------------------------------------
> 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:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message