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

Re: Including external graphics dynamically

From: Dr. Andrei Jeleznov <Andrei.Jeleznov@carus.de>
Date: Thu, 01 Mar 2001 09:43:58 +0000
Message-ID: <3A9E19DE.228C9B9@carus.de>
To: ginser@gmx.net
CC: www-xsl-fo@w3.org
Hi,


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

I didn't try this with URL, but with local files it works:

XML source:
<....>
<logo>file:../gifs/logo.gif </logo>
<...>

XSL-file:
<....>
<xsl:variable name="logo" select="./logo"/>
<....>
<fo:external-graphic src="{$logo}" />

regards,

Andrei
Received on Thursday, 1 March 2001 03:44:37 GMT

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