我想在我的 PDF 输出中添加图像。问题是,
<fo:external-graphic src="url('URL here')"/>
只接受一个 URL。然而,指向我要添加的图像的链接是从正在转换的 XML 文档中的另一个值派生的。
有什么方法可以动态生成图片网址吗?
提前致谢 塞巴斯蒂安
最佳答案
An attribute value template consists of an alternating sequence of fixed parts and variable parts. A variable part consists of an XPath expression enclosed in curly brackets ({}). A fixed part may contain any characters, except that a left curly bracket must be written as {{ and a right curly bracket must be written as }}.
关于xml - 使用动态 URL 添加带有 XSL :FO 的图片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3924904/