Sharepoint Designer XSLT count boolean node = true
- by Heather Masters
I have a SharePoint list I converted to XSLT to do some additional grouping and counting and percentages. I need to return the number of items = true within my nodeset, I have:
<xsl:value-of select="count($nodeset/@PartnerArrivedAtCall)"/>
(which returns the count of all the nodes)
I have tried
<xsl:value-of select="count($nodeset/@PartnerArrivedAtCall
[@PartnerArrivedAtCall = 'Yes'])"/>
(returns zero)
and
<xsl:variable name="ArrivedYes"
select="$nodeset/@PartnerArrivedAtCall
[@PartnerArrivedAtCall='Yes']"/>
(also returns zero)
Can you please give me a good example of how to count only the true values (in my XML, true = "Yes")
Thanks!