cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Pietschmann" <j3322...@yahoo.de>
Subject Re: dynamic xsl:fo image inclusion
Date Tue, 03 Dec 2002 20:36:47 GMT
Robert Sösemann wrote:
>    <xsl:template match="IMG">
>         <fo:inline>
>             <fo:external-graphic src="url(MYPATHBASE/{$src})"/>
>         </fo:inline>
>    </xsl:template>

FOP does not use Cocoons source resolver for finding images.
Your best bet is to use either absolute file URLs:
   <fo:external-graphic src="file:///abs/path/to/{$src}"/>
or use a localhost http URL and set up a pipeline for Cocoon to
deliver them. Not exactly the fastest or most secure way (your
images are publicly accessible, unless you restrict access in
the web server to localhost)
   <fo:external-graphic src="http://localhost/cocoon/fop-img/{$src}"/>
BTW using images inline will not cause line height to be adjusted
or something, check before that your result looks ok.

J.Pietschmann


---------------------------------------------------------------------
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