W3C home > Mailing lists > Public > public-qt-comments@w3.org > June 2017

[Bug 30131] New: [xslt30ts] merge-051 and merge-082 use position() in xsl:merge-key

From: <bugzilla@jessica.w3.org>
Date: Wed, 21 Jun 2017 23:15:10 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-30131-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=30131

            Bug ID: 30131
           Summary: [xslt30ts] merge-051 and merge-082 use position() in
                    xsl:merge-key
           Product: XPath / XQuery / XSLT
           Version: Proposed Recommendation
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0 Test Suite
          Assignee: abel.online@xs4all.nl
          Reporter: mike@saxonica.com
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

Tests merge-051 and merge-082 use <xsl:merge-key select="position()"/>
expecting the merge keys to be a monotonic sequence of integers 1..N.

However, we state in ยง15.5 that a merge key is evaluated with a singleton
focus, so the value of position() will always be 1.

Unfortunately this invalidates what the tests are trying to achieve, which is
simple pairwise merging of two input sequences.

The functionality can be achieved, but less conveniently, using accumulator
values as the grouping keys.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 21 June 2017 23:15:22 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 21 June 2017 23:15:23 UTC