The value I am getting for sp_sign(given below) I want to use it as src for fo:external graphic . I tried many things still no luck please help.
<xsl:for-each select="//**sp_sign**">
<xsl:value-of select="**@value**" />
//
<xsl:variable name="src" select="//sp_sign" />
<fo:external-graphic baseline-shift="super" **src="${src}"** content-height="80px" content-width="80px"/>
</fo:block>
Thanks in advance Regards, Manik Vashisht
I normally give the src attribute using the xsl:attribute tag
<fo:external-graphic>
<xsl:attribute name="src">
<xsl:value-of select="$src" />
</xsl:attribute>
</fo:external-graphic>
the src should look like: url('path/to/image')
Normally, you can add the image file like this too. Where LOGO is XML value, using apache fop 2.1
<xsl:variable name="logo" select="LOGO"/>
<fo:block>
<fo:external-graphic src="file:///{$logo}" />
</fo:block>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With