xsl:on-completion

The xsl:on-completion instruction is new in XSLT 3.0; it occurs within xsl:iterate. For details see xsl:iterate. During execution of xsl:on-completion there is no context item, position or size; the instruction has access to the iteration parameters with the values given on the last iteration (or the initial values of the xsl:param elements if the input sequence was empty).