File: Data.xml
File: Transform.xslt
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
More tests of division in XPath 2.0:
A xs:yearMonthDuration divided
by a number:
One xs:yearMonthDuration divided
by another:
A xs:dayTimeDuration divided
by a number:
One xs:dayTimeDuration divided
by another:
Output:
More tests of division in XPath 2.0:
A xs:yearMonthDuration divided by a number:
P1Y8M div 4 = P5M
One xs:yearMonthDuration divided by another:
P1Y8M div P5M = 4
A xs:dayTimeDuration divided by a number:
P24DT8H div 4.5 = P5DT9H46M40S
One xs:dayTimeDuration divided by another:
P24DT8H div PT4H = 146