Hi all,

I have been using Apache Cocoon 2.1.8 (which uses Apache FOP 0.20.5).
I have coded xsl-fo and managed to display PDF successfully with:
headers, footers, paragraphs, lists, and tables.

However, here is where I need your help:
I have generated the following xsl-fo for displaying images in PDF, which doesn't seem to work:
[I've tried all of the cases below, without results]
[I'm omitting the enclosing <fo> tags]

<fo:external-graphic src="images/myimage.gif"/>
<fo:external-graphic src="*url(*images/myimage.gif*)*"/>
<fo:external-graphic src="*file:/*images/myimage.gif"/>
<fo:external-graphic src="*url(file:/*images/myimage.gif*)*"/>
<fo:external-graphic src="*../*images/myimage.gif"/>
<fo:external-graphic src="*url(../*images/myimage.gif*)*"/>
<fo:external-graphic src="*file:/../*images/myimage.gif"/>
<fo:external-graphic src="*url(file:/../*images/myimage.gif*)*"/>

My project structure is:
* test/
   sitemap.xmap
   content/
      testfile.xml  (containing docbook)
   images/
      myimage.gif
   styles/
      mydbk2pdf.xsl (containing the code above)

My sitemap.xmap contains the following fragments:

    <!-- for processing pdf requests -->
   <map:match pattern="test/*.pdf">
      <map:generate type="file" src="test/content/{1}.xml"/>
      <map:transform type="xslt" src="styles/mydbk2pdf.xsl"/>
      <map:serialize type="fo2pdf"/>
   </map:match>

  <!-- for processing images -->
   <map:match pattern="images/**.gif">
      <map:read src="context://test/images/{1}.gif" mime-type="image/gif"/>
   </map:match>

Your insight will be much appreciated.
I would also appreciate if someone could give me an example that works.

Best resgards,
   Diego Guillen


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

Reply via email to