W3C home > Mailing lists > Public > www-xsl-fo@w3.org > February 2001

Including external graphics dynamically

From: <ginser@gmx.net>
Date: Thu, 1 Mar 2001 02:01:55 +0100 (MET)
To: www-xsl-fo@w3.org
Message-ID: <3379.983408515@www27.gmx.net>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:08 GMT