This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 4927 - [FO] 10.8.1, 10.8.2
Summary: [FO] 10.8.1, 10.8.2
Status: CLOSED DUPLICATE of bug 4448
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 1.0 (show other bugs)
Version: Recommendation
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
Depends on:
Reported: 2007-08-09 15:25 UTC by Ben Wagner
Modified: 2007-11-16 09:31 UTC (History)
0 users

See Also:


Description Ben Wagner 2007-08-09 15:25:11 UTC
In the functions and operators specification the following two signatures are given

op:subtract-dateTimes($arg1 as xs:dateTime, $arg2 as xs:dateTime) as xs:dayTimeDuration?


op:subtract-dates($arg1 as xs:date, $arg2 as xs:date) as xs:dayTimeDuration?

but I am puzzled as to why these specify a return type of "xs:dayTimeDuration?". Since neither argument can be the empty sequence, and since the static context timezone is assumed if there isn't one on one of the arguments, I don't see how these functions can fail. Additionally, the rest of the operator backers do not return empty sequences. Should the return type on these two functions be "xs:dayTimeDuration"? If not, there should be an example of why not in the function description.
Comment 1 Michael Kay 2007-08-09 15:34:03 UTC
Thanks, this is a duplicate of bug #4448 and an erratum has already been drafted.

*** This bug has been marked as a duplicate of bug 4448 ***