dynamic external images

"Ai, Larry" <[email protected]> Fri, 30 May 2003 14:50:08 -0400
Newsgroups gmane.text.xml.xsl.general
Message-ID <[email protected]>
I need to create external images on the fly and include the images in the document.

I try the following:

<xsl:variable name="image">
    <!-- the following template return an image file name -->
    <xsl:call-template name="create-image"/>
</xsl:variable>

<fo:external-graphic src="$image"/>

FOP does not allow variable used in the attribute.

Any workaround?

Thanks!

Larry