Bug 20850 - return type of adjust-dateTime-to-timezone
Summary: return type of adjust-dateTime-to-timezone
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.0 (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows NT
: 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: 2013-02-01 21:18 UTC by Priscilla Walmsley
Modified: 2015-05-23 19:05 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Priscilla Walmsley 2013-02-01 21:18:02 UTC
The description of adjust-dateTime-to-timezone says "If $arg is the empty sequence, then the function returns the empty sequence.".  But the return type in the signature says "xs:dateTime", which does not allow it to be the empty sequence.
Comment 1 Michael Kay 2013-02-03 12:07:32 UTC
Thanks for pointing this out. I shall treat the correction as editorial, since it results from an editorial error; the spec clearly allowed an empty sequence in the XQ1.0/XP2.0 version of the spec; and the function prototype contradicts the prose.