我有一個SharePoint列表我轉換爲XSLT做一些額外的分組和計數和百分比。我需要我的節點集內返回的項目數=真,我有:Sharepoint設計器XSLT計數布爾節點= true
<xsl:value-of select="count($nodeset/@PartnerArrivedAtCall)"/>
(返回所有節點的計數)
我已經試過
<xsl:value-of select="count($nodeset/@PartnerArrivedAtCall
[@PartnerArrivedAtCall = 'Yes'])"/>
(返回零)
和
<xsl:variable name="ArrivedYes"
select="$nodeset/@PartnerArrivedAtCall
[@PartnerArrivedAtCall='Yes']"/>
(也返回零)
能否請您給我的怎麼算只有真值一個很好的例子(在我的XML,真正=「是」)
謝謝!
問得好,+1。查看我的答案以獲得解釋和簡單的解決方案。 :) – 2011-01-05 18:57:29