[Bug 30072] New: [XSLT30]Grouping example lacks parentheses in current-group call

https://www.w3.org/Bugs/Public/show_bug.cgi?id=30072

            Bug ID: 30072
           Summary: [XSLT30]Grouping example lacks parentheses in
                    current-group call
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: editorial
          Priority: P2
         Component: XSLT 3.0
          Assignee: mike@saxonica.com
          Reporter: martin.honnen@gmx.de
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

The example "A Composite Grouping Key" in
https://www.w3.org/TR/xslt-30/#grouping-examples is as follows:

<xsl:for-each-group select="cities/city" 
                    group-by="@name, @country" 
                    composite="yes">
  <p>
    <xsl:value-of select="current-grouping-key()[1] || ', ' ||
                          current-grouping-key()[2] || ': ' || 
                          avg(current-group/@pop)"/>
  </p>
</xsl:for-each-group>

The expression
  avg(current-group/@pop)
in there lacks parentheses in the current-group call, it should be
  avg(current-group()/@pop)
.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Sunday, 5 March 2017 20:03:17 UTC