I've to add an image from a servlet and then add this into a xsl.
This servlet have a getUrl method that return a base64 url.
I've tried this, but isn't correct:
java:
Transformer _Transformer = tFactory.newTransformer(style);
tFactory.setAttribute("imageChart", "ChartCreator?chartConfig=" + ChartPdfDecoder.getURL(chartConfig));
xsl:
<fo:block margin-left="1cm" margin-top="0.2cm" height="265px" width="310px">
<fo:external-graphic src="url('$imageChart')"/>
</fo:block>
Who can help me?
Thanks