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 27231 - [FO31] Typos in 17.3 'Functions that Operate on Arrays'
Summary: [FO31] Typos in 17.3 'Functions that Operate on Arrays'
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.1 (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 minor
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-11-04 15:12 UTC by Debbie Lockett
Modified: 2014-11-17 11:33 UTC (History)
1 user (show)

See Also:


Attachments

Description Debbie Lockett 2014-11-04 15:12:04 UTC
[FO31] Typos in 17.3 'Functions that Operate on Arrays', as follows:

(1) 17.3.4 array:remove - Error Condition
     Should refer to argument $position --- rather than $index

(2) 17.3.8 array:reverse - Examples 
     2nd example returns [("c", "d"), ("a", "b")] --- rather than [("c", "d"), ("a", "b)"] (note misplaced quote)

(3) 17.3.11 array:filter - Examples 
     1st example, function variable $x (or $z) should match; 
          also returns [1,2] --- rather than ["A", "B"]

(4) 17.3.12 array:fold-left AND 17.3.13 array:fold-right - Signature 
     Result type is item()* --- rather than array(*)

(5) 17.3.15 array:sort - Rules 
     2nd rule "same members as the input **array** $input" -- rather than "... input **sequence** $input"
Comment 1 Andrew Coleman 2014-11-11 17:02:06 UTC
These changes are editorial
Comment 2 Michael Kay 2014-11-11 17:28:36 UTC
There's another TBA under duplicates:reject.

Decided to insert the replacement character for invalid escape sequences rather than raising an error. (We should probably also mention that this handles invalid surrogate pairs).
Comment 3 Michael Kay 2014-11-17 11:33:38 UTC
Changes applied. Also added some examples for array:fold-left and array:fold-right.