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 25000 - [XSLT 3.0] Map expression with empty sequence as key should be type error
Summary: [XSLT 3.0] Map expression with empty sequence as key should be type error
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Last Call drafts
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-11 00:13 UTC by Michael Kay
Modified: 2014-05-15 14:00 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2014-03-11 00:13:00 UTC
When a map expression has a key that evaluates to an empty sequence, we say:

Each KeyExpr expression is evaluated and atomized; a dynamic error occurs if the result is not a single atomic value.

It should be a type error not a dynamic error.
Comment 1 Michael Kay 2014-03-27 23:17:33 UTC
The WG agreed this should be a type error. Fixed.