Pages: 1
Post reply
What is the syntax in XSL to test :If there is only one item in the XML.Following sytax is not working.<xsl:when test="count(SUB_MENU[@active='True']) = 0">Thanks.
Offline
<xsl:when test="count(SUB_MENU[@active='True']) = 0">Isn't that testing if there are no items/nodes in the XML? Try:<xsl:if test="count(SUB_MENU[@active='True']) = 1" ><xsl:text>There is one item</xsl:text></xsl:if>