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