I have a bunch of nodesets where I want to return "1" instead of "true" when there are more than one hit on count($mynodeset) Is there more compact/smarter way to to do this in XSLT 1.1?
<xsl:variable name="x5" select="count($mynodeset) != 0"/>
<xsl:variable name="z5">
<xsl:choose>
<xsl:when test="x5 = 'true'">1</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:variable>