【发布时间】:2026-01-22 04:15:01
【问题描述】:
我有这样的示例代码:
<fo:block>
<xsl:value-of select="totalsForMonth/@totalI" />
</fo:block>
<xsl:when test="totalsForMonth/@totalI != '0.0'">
<fo:block>
<xsl:value-of select="totalsForMonth/@totalI" />
</fo:block>
</xsl:when>
输出将是:
13.0
在导出的 pdf 中。
我期待看到
13.0
13.0
我做错了什么?
【问题讨论】:
-
<xsl:when>必须包含在<xsl:choose>中。还请向我们提供输入 XML。