Until now, all my conditions were simple ones, so I had no trouble using the xsl:choose and xsl:when element.
For example,
But now I want to test a compound condition.Code:<xsl:choose> <xsl:when test="@item = 'fruit'"> … DO SOMETHING </xsl:when> <xsl:otherwise> … DO SOMETHING ELSE </xsl:otherwise> </xsl:choose>
For example,
If attribute ‘item’ equals fruit, and attribute ‘item-num’ is greater than 1, then do something. Otherwise, do something else.
How do I do that?