W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2016

[Bug 29607] New: [FO31] array join

From: <bugzilla@jessica.w3.org>
Date: Tue, 03 May 2016 10:19:52 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29607-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29607

            Bug ID: 29607
           Summary: [FO31] array join
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
               URL: https://www.w3.org/XML/Group/qtspecs/specifications/xp
                    ath-functions-31/html/Overview.html#func-array-join
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators 3.1
          Assignee: mike@saxonica.com
          Reporter: tim@cbcl.co.uk
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

Array join is defined as:

    declare function array:join($arrays as array(*)*) as array(*) {
              if (fn:count($arrays) lt 2)
              then $arrays
              else op:array-concat(fn:head($arrays),
array:join(fn:tail($arrays)))
            };

if $arrays has count zero (i.e. $arrays is the empty sequence), then this
definition says we return the empty sequence which is not permitted by the
static return type, however the example

The expression array:join(()) returns [ ].

shows the intention is that the empty array is returned.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Tuesday, 3 May 2016 10:19:55 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 3 May 2016 10:19:55 UTC