This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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) .
Thanks for pointing this out. The example has now been corrected.