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 3769 - fn-dateTime-28, fn-dateTime-29, fn-dateTime-30 assume empty sequence is ok
Summary: fn-dateTime-28, fn-dateTime-29, fn-dateTime-30 assume empty sequence is ok
Status: CLOSED WONTFIX
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-26 06:19 UTC by Per Bothner
Modified: 2006-09-26 15:29 UTC (History)
0 users

See Also:


Attachments

Description Per Bothner 2006-09-26 06:19:50 UTC
The tests fn-dateTime-28, fn-dateTime-29, and fn-dateTime-30 check that fn:dateTime accepts an empty sequence as as an argument.  However, that seems to contract the F&O spec:

5.2 A Special Constructor Function for xs:dateTime
...
fn:dateTime($arg1 as xs:date, $arg2 as xs:time) as xs:dateTime

Note there is no '?' in the prototype.

Yes, the Constructor Functions defiuned in 3.12.5 in the XQuery spec have '?' in their types, but that does not imply a '?' for fn:dateTime function.  (Note that the 3.12.5 functions are in the xs namespace, as opposed to the fn namespace.)
Comment 1 Carmelo Montanez 2006-09-26 15:06:48 UTC
Hey Per:

Thanks for the message.  The Working group recently changed the function signature (fn:dateTime) to include "?".  This change will probably be reflected soon.

Thanks,
Carmelo
Comment 2 Carmelo Montanez 2006-09-26 15:07:38 UTC
Hey Per:

Thanks for the message.  The Working group recently changed the function signature (fn:dateTime) to include "?".  This change will probably be reflected soon.

Thanks,
Carmelo
Comment 3 Per Bothner 2006-09-26 15:29:55 UTC
(In reply to comment #2)
I suspected that might be the case.  Thanks for the quick reply.