Try it.. it may be possible.
Or if the SRC value can vary in the range around 1..5
you can apply the selecting criteria in the xsl itself.
e.g.,
<fo:block>
<xsl:choose>
<xsl:when test="@VALUE=1">
<fo:external-graphic src="image1.gif"/>
</xsl:when>
<xsl:when test="@VALUE=2">
<fo:external-graphic src="image2.gif"/>
</xsl:when>
---
<xsl:otherwise>
<fo:external-graphic src="image_else.gif"/>
</xsl:otherwise>
</xsl:choose>
</fo:block>
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 21, 2003 1:36 PM
To: [EMAIL PROTECTED]
Subject: How to dynamically set src attribute
I want to place picture to the pdf file, but the file name is not given in
advance , it is stored in XML .
For example
XML:
<imagefile>picture.bmp</imagefile>
XSL
<fo:block>
<fo:external-graphic src="image.bmp" ... />
</fo:block>
Can I dynamically change the src attribute to the value , which is in XML
and can be retrieved by <xsl:value-of select ... > ? Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]