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 29632 - [FO31] array:flatten
Summary: [FO31] array:flatten
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.1 (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
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-17 13:45 UTC by Tim Mills
Modified: 2016-07-21 14:10 UTC (History)
1 user (show)

See Also:


Attachments

Description Tim Mills 2016-05-17 13:45:27 UTC
The signature of this is:

    array:flatten($array as item()*) as item()*

It's odd that this function is in the array namespace, since it neither requires an array nor returns an array.  

It's also strange that the item sequence parameter is called $array.  This might prove surprising in to an IDE user.
Comment 1 Michael Kay 2016-05-24 15:51:09 UTC
Decided to make no change to the namespace, but to revert the change in argument name from $input to $array which was part of a bulk edit and inappropriate for this particular function.
Comment 2 Andrew Coleman 2016-06-03 08:51:09 UTC
Mike, do you have an action item for this?  I don't see one in the minutes
Comment 3 Michael Kay 2016-07-21 14:10:28 UTC
I discovered during a review of resolved bugs that this change had not been applied; but this has now been corrected.