Used within an xsl:merge instruction to define the processing to be carried out on each group of input items sharing a value for the merge key.

Content: sequence-constructor
Permitted parent elements: xsl:merge
Element has no attributes

Saxon availability

Available in XSLT 3.0. From Saxon 9.8, available in all editions. Implemented in Saxon-PE and Saxon-EE since Saxon 9.6. Available for all platforms.

Notes on the Saxon implementation

In Saxon 9.6 the implementation of the current-merge-group() function did not match the latest W3C specification. Instead of returning a map, it returned a sequence containing all items in the current merge group, regardless which merge source they came from.

Since Saxon 9.7, the implementation conforms with the final Recommendation.


For details and examples, see xsl:merge

Links to W3C specifications

XSLT 3.0 Specification

See also