File: Data.xml
File: Transform.xslt
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:auth="http://www.authors.com/">
More tests of addition in XPath 2.0:
Two xs:yearMonthDurations:
Two xs:dayTimeDurations:
An xs:yearMonthDuration and an
xs:dateTime:
An xs:dayTimeDuration and an
xs:dateTime:
An xs:yearMonthDuration and an
xs:date:
An xs:dayTimeDuration and an
xs:date:
An xs:dayTimeDuration and an
xs:time:
xs:time:
/sonnet/auth:author/year-of-birth"/>
Output:
More tests of addition in XPath 2.0:
Two xs:yearMonthDurations:
P1Y8M + P2Y7M = P4Y3M
Two xs:dayTimeDurations:
P5DT9H23M12S + P3DT16H12M17S = P9DT1H35M29S
An xs:yearMonthDuration and an xs:dateTime:
1995-04-21T00:47:00 + P1Y8M = 1996-12-21T00:47:00
An xs:dayTimeDuration and an xs:dateTime:
1995-04-21T00:47:00 + P5DT9H23M12S = 1995-04-26T10:10:12
An xs:yearMonthDuration and an xs:date:
1995-04-21 + P1Y8M = 1996-12-21
An xs:dayTimeDuration and an xs:date:
1995-04-21 + P5DT9H23M12S = 1995-04-26
An xs:dayTimeDuration and an xs:time:
17:03:00 + P5DT9H23M12S = 02:26:12xs:time: