[Bug 4927] [FO] 10.8.1, 10.8.2

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

           Summary: [FO] 10.8.1, 10.8.2
           Product: XPath / XQuery / XSLT
           Version: Recommendation
          Platform: All
               URL: http://www.w3.org/TR/xquery-operators/#func-subtract-
                    dateTimes
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators
        AssignedTo: mike@saxonica.com
        ReportedBy: bungeman@gmail.com
         QAContact: public-qt-comments@w3.org


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?

and 

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.

Received on Thursday, 9 August 2007 15:25:16 UTC