在XSL-FO中生成带双引号的文件路径

时间:2010-02-19 10:50:52

标签: xml xslt xsl-fo

我的格式为

<root>
<image> C:/images/image1.jpg </image>
</root>

现在我需要在我的XSL-FO中以这样一种方式使用这条路径(C:/images/image1.jpg),

<fo:external-graphic src="C:/images/image1.jpg" />

我如何使用XML中的路径

在我的XSL-FO中实现这一点

1 个答案:

答案 0 :(得分:2)

<xsl:template match="image">
  <fo:external-graphic src="{normalize-space()}" />
</xsl:template>