Grouping Is Much, Much Easier
Grouping in XSLT 2.0 is orders of magnitude easier than
it was in XSLT 1.0. The <xsl:for-each-group>
element can make
your code as much as 80% smaller, depending on the complexity of your
XSLT 1.0 stylesheets. If your existing stylesheets do grouping, the
new grouping support in XSLT 2.0 can make them much more elegant. See
the section [2.0] New Grouping Syntax in XSLT 2.0” in Chapter 7 for all the details.
Get XSLT, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.