test
当预期的输出应该没有时,这段代码给了我输出..
我的 XSLT 处理器有问题还是..?:
<xsl:template match="/">
<xsl:param name="IsTextArea">
<xsl:choose>
<xsl:when test="false()">
<xsl:value-of select="true()"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="false()"/>
</xsl:otherwise>
</xsl:choose>
</xsl:param>
<html>
<xsl:choose>
<xsl:when test="$IsTextArea">test
</xsl:when>
</xsl:choose>
</html>
</xsl:template>
顺便说一句,我需要原始 XSLT 1.0的解决方案(没有扩展和类似的东西)。
param
是否可以在 XSLT 1.0 中为 a 设置布尔参数?