File: Data.xml
File: Transform.xslt
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
Tests of XPath div in XSLT 2.0
9 div 3 =
9 div 3.8 =
9 div number('4') =
9 div number('Q') =
9 div number(true()) =
9 div number(false()) =
Output:
Tests of XPath div in XSLT 2.0
9 div 3 = 3
9 div 3.8 = 2.368421052631578947
9 div number('4') = 2.25
9 div number('Q') = NaN
9 div number(true()) = 9
9 div number(false()) = INF