In XSLT 2.0, use the xsl:for-each-group instruction.
If you are stuck with XSLT 1.0, use Muenchian Grouping. Look it up in your favourite XSLT textbook or google for it.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|