Page 1 of 1

concatenate fo:external-graphic

Posted: Wed Oct 24, 2007 2:40 pm
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?

Posted: Thu Oct 25, 2007 12:18 pm
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