W3C home > Mailing lists > Public > public-qt-comments@w3.org > February 2006

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

From: <bugzilla@wiggum.w3.org>
Date: Mon, 27 Feb 2006 09:56:45 +0000
To: public-qt-comments@w3.org
Cc:
Message-Id: <E1FDf7V-0006FJ-PO@wiggum.w3.org>

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





------- Additional Comments From mike@saxonica.com  2006-02-27 09:57 -------
It was a conscious decision to design the functions like this. We named them
years-from-duration() etc because the name is shorter and because we thought it
likely that they might be extended one day to cover all durations. But we didn't
want to cover all durations yet, because of difficulties in defining the
semantics. 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. 

Michael Kay
(personal response)
Received on Monday, 27 February 2006 09:56:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:10 UTC