how to give dynamic path to fo:external graphic xsl

Viewed 7251

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

3 Answers

Just add the variable between braces!

<xsl:variable name="logo" select="LOGO"/>
<fo:block>
  <fo:external-graphic src="{$logo}" />
</fo:block>

The result will be:

<fo:external-graphic src="https://ibb.co/kqSQ9z3"/>
Related