[Bug 2789] Substitutability of duration subtypes

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2789





------- Additional Comments From mike@saxonica.com  2006-02-19 13:55 -------
Ignore comment #11. There are no existing examples in sections 10.4.1
(op:yearMonthDuration-equal) and 10.4.4 (op:dayTimeDuration-equal). Instead,
create some new examples:

op:duration-equal(xdt:yearMonthDuration('P2Y'), xdt:yearMonthDuration('P24M'))
returns true

op:duration-equal(xdt:dayTimeDuration('P10D'), xdt:dayTimeDuration('PT240H'))
returns true

op:duration-equal(xs:duration('P2Y0M0DT0H0M0S'), xdt:yearMonthDuration('P24M'))
returns true

op:duration-equal(xs:duration('P0Y0M10D'), xdt:dayTimeDuration('PT240H'))
returns true

Michael Kay

Received on Sunday, 19 February 2006 13:55:31 UTC