【发布时间】:2009-12-15 16:41:25
【问题描述】:
当我直接输出节点的值例如:
<fo:inline><xsl:value-of select="isEnabled" /></fo:inline>
我得到了以 pdf "true" 输出的正确字符串..
但是如果我将 isEnabled 的值直接设置为一个变量,然后尝试对其进行比较.. 它似乎不起作用,就好像节点不存在一样。
<xsl:variable name="isEnabled" select="isEnabled" />
<xsl:choose>
<xsl:when test="$isEnabled = 'true'">
dostuff...
这里好像从来没有正确接收到值,测试总是失败
有什么想法吗?
【问题讨论】:
-
当你
<xsl:value-of select="isEnabled" />时发生了什么? -
显示文本“true”
标签: xpath xslt pdf-generation apache-fop