我有這種說法的一個問題: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