/** * Set the current grouping iterator. This supports the current-group() and current-grouping-key() * functions in XSLT 2.0 * * @param collection the new current GroupIterator */ public void setCurrentGroupIterator(GroupIterator collection) { xsltContext = new XSLTContext(xsltContext); xsltContext.currentGroupIterator = collection; }