Thursday, January 26, 2006

XSLT Operations

<xsl:when test="ceiling(number($variable1) div number($variable2)) = 2">

You can perform the following operations on XSLT variables:

ceiling($variable): returns the smallest integer greater than or equal to $variable
number($variable): casts $variable to a number
div: performs division operation

No comments: