How to find out if a number is odd or even in XSLT: position() mod 2 Example usage: Odd number Even number