concatenate fo:external-graphic

Here should go questions about transforming XML with XSLT and FOP.
m_dieu
Posts: 1
Joined: Wed Oct 24, 2007 2:39 pm

concatenate fo:external-graphic

Post by m_dieu »

Hi everybody,

I have to concatenate a "src" but I don't have an idea.
My problem looks like this:

<fo:external-graphic src="http://localhost:7001/servlet/ChartView ... -templates select='whatever'/> width="18cm"></fo:external-graphic>

I've also tried it with:
"...&tmp=+<xsl:apply-templates select='whatever'/>"

or
"...&tmp="+<xsl:apply-templates select='whatever'/>

Nothing works yet
Is there any possibility to solve this problem?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

Store the result of <xsl:apply-templates select='whatever'/> in an XSLT variable for example $tmpVar before the fo:external-graphic element. After that use the concat function in the value of the src attribute to concatenate the strings "http://localhost:7001/servlet/ChartView ... p=pie&tmp=", $tmpVar and " width='18cm'".


Regards,
Sorin
Post Reply