# current-group

Returns the contents of the current group selected by `xsl:for-each-group`

current-group() → item()

There are no arguments
Result | item()

Links to W3C specifications

Namespace: http://www.w3.org/1999/XSL/Transform

Applies to: XSLT 2.0 and later versions

XSLT 2.0 Specification

XSLT 2.1 Specification

Notes on the Saxon implementation

Saxon 9.3 and earlier releases implement the XSLT 2.0 definition of this function. The additional behaviour associated with the `xsl:merge` instruction is not yet implemented.

Next