我试图超链接一个值。超链接本身也存储在XML中。这用于输出pdf的订单项。XSLT:将XML超链接添加到另一个XML值
这是我当前的代码:
<fo:block font-size="8pt">
<fo:inline>
<xsl:value-of select="substring-before(_preload_product_id, " - ")" />
</fo:inline>
</fo:block>
我希望能够以超链接添加到字符串。实际的URL链接,就像我提到的,来自于XML以及因此它看起来像这样我的XSL:
<xsl:value-of select="cf_customer_quotation_line_item_product_url" />
我一直在四处寻找,但我经常发现代码较侧重的网站,但我做的PDF。 我也想知道是否有可能这个相同的超链接添加到图像象下面这样:
<fo:block>
<fo:external-graphic src="url()" content-height="2cm">
<xsl:attribute name="src">
<xsl:value-of select="cf_customer_quotation_line_item_image_url"/>
</xsl:attribute>
</fo:external-graphic>
</fo:block>
你在使用什么渲染引擎?这可能是该产品的一个特征。我会看看我使用的产品并回馈给你。 – biscuit314 2014-10-30 18:45:29
完全不确定,但是这个PDF是在一个名为Workbooks CRM的产品中生成的。 xml version =“1.0”encoding =“UTF-8” – idxearo 2014-10-30 18:55:58