fn:current-grouping-key() as xs:anyAtomicType?
Returns the current regex grouping key.
This function is only available in XSLT; it is not available in XQuery or JavaScript.
See the examples in the Grouping section of the XSLT Specification.