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

[Bug 3651] Argument types of fn:dateTime

From: <bugzilla@wiggum.w3.org>
Date: Mon, 04 Sep 2006 14:44:44 +0000
To: public-qt-comments@w3.org
Message-Id: <E1GKFgq-0008FJ-SJ@wiggum.w3.org>


           Summary: Argument types of fn:dateTime
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators
        AssignedTo: ashok.malhotra@oracle.com
        ReportedBy: oliver@cbcl.co.uk
         QAContact: public-qt-comments@w3.org

The definition of fn:dateTime (from section 5.2 of the spec) is:
fn:dateTime($arg1 as xs:date, $arg2 as xs:time) as xs:dateTime

In the examples (5.2.1) it is stated that:
fn:dateTime(xs:date("1999-12-31"), xs:time("12:00:00")) returns

Section 5.1 states:
The form of the constructor function for a type prefix:TYPE is:
prefix:TYPE($arg as xs:anyAtomicType?) as prefix:TYPE?

Under the static typing feature the example should raise a type check error, as
xs:date and xs:time have return types xs:date? and xs:time? respectively.

In order for the example to make sense (and to be consistent with other
constructor functions) fn:dateTime should have the following signature:

fn:dateTime($arg1 as xs:date?, $arg2 as xs:time?) as xs:dateTime?

and it should return the empty sequence if either of the parameters are the
empty sequence.
Received on Monday, 4 September 2006 14:45:02 UTC

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