Mega Code Archive
Categories
/
XML Tutorial
/
XSLT StyleSheet
Operator mod returns the remainder from a truncating division
File: Data.xml
1
3
4
17
8
11
File: Transform.xslt
/
=
mod
=
Output:
8 / 11 = 0.7272727272727273
8 mod 11 = 8