[Bug 2944] [FO] 10.5 fn:years-from-duration etc have wrong argument types

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





------- Additional Comments From per@bothner.com  2006-02-27 18:14 -------
(In reply to comment #1)
> Durations in XML Schema 1.0 are 6-tuples, which would suggest that
> years-from-duration(P24M) (excuse the shorthand) should return zero;
> while in XML schema 1.1, durations are 2-tuples, which would suggest
> that the same function returns 2. 

More directly to the point: F&O 10.3.1.3 defines
  fn:years-from-duration(fn:yearMonthDuration("P24M"))
to return 2, not 0.  I.e. F&O already follows the XML schema 1.1 model.

Received on Monday, 27 February 2006 18:13:58 UTC