サーブレットから画像を追加してから、これを xsl に追加する必要があります。
このサーブレットには、base64 URL を返す getUrl メソッドがあります。
私はこれを試しましたが、正しくありません:
ジャバ:
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>
誰が私を助けることができます?
ありがとう