我有这种说法的一个问题:XSL条件语句
<xsl:choose>
<xsl:when test="cars[@id='1']">
<xsl:choose>
<xsl:when test="cars[@id='1']='1'">true</xsl:when>
<xsl:otherwise>false</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
true
</xsl:otherwise>
</xsl:choose>
“true” 是永诺即使显示我的“汽车[@ ID = '1')= '0'(不存在)。 感谢您的帮助
我觉得有一个右括号父在这种情况下太多 – soulcheck 2011-12-30 15:54:01
即时通讯对不起,它只是一个错误,没有括号 – 2011-12-30 15:59:53
也发布了XML。也许这是其他'真实'? – soulcheck 2011-12-30 16:02:13