provides a simple choose function
object viv:choose (cond-1, object-1, ..., cond-n, object-n, object-other); boolean cond-1; object object-1; ... ; boolean cond-n; object object-n; object object-other;
Simple choose statement (which does not exist in XPath 1.0). Allows less verbose XSL as it can be used instead of xsl:choose. It is also more flexible than xsl:choose because it returns an object (xsl:choose forces the conversion of objects to strings).
<xsl:value-of select="viv:choose(@score = 1, 'top', @score > 0.5, 'middle', 'bottom')" />