File: Transform.xslt
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
Tests of the mod operator in XPath 2.0
9 mod 3 =
9 mod 3.8 =
9 mod number('4') =
9 mod number('Q') =
9 mod number(true()) =
9 mod number(false()) =
Output:
Tests of the mod operator in XPath 2.0
9 mod 3 = 0
9 mod 3.8 = 1.4
9 mod number('4') = 1
9 mod number('Q') = NaN
9 mod number(true()) = 0
9 mod number(false()) = NaN