Including external graphics dynamically

Hi,

I've been looking desperately already for hours and do not find a solution
for the following (probably simple if you know how) problem:

I use FOP to process PDF from out of a template with some XML data for the
first time.

I would like to include a picture with my stylesheet depending on the URL
passed in the XML. Normally in XSL I would set the SRC attribute via and
xsl:attribute command. I didn't manage to get that working with
fo:external-graphics.

Again:

Instead of the static inclusion:
<fo:external-graphic src="http://www.ibiblio.org/xml/cup.gif"/>

I'd need sth like:

<fo:external-graphic>
 <xsl:attribute name="src">
  <xsl:value-of select="picURL"/>
 </xsl:attribute>
</fo:external-graphic>

with the XML source
<...>
<picURL>http://www.ibiblio.org/xml/cup.gif</picURL>
<...>

Do you have by any chance an idea how i could get this working or is that
not possible with FO?

I'd be terribly grateful if you could help me further.

Thanks a lot in advance,

Peter



-- 
Sent through GMX FreeMail - http://www.gmx.net

Received on Wednesday, 28 February 2001 20:02:00 UTC