XSLT Node grouping

Attention: open in a new window. PDFPrintE-mail

Grouping is a common problem in XSLT stylesheets: how do you take a list of elements and arrange them into groups. One of the most common situations in which it occurs is when you are getting XML output from a database. The database usually gives you results that are structured according to the records in the database. (See more explanation here: http://www.jenitennison.com/xslt/grouping/muenchian.xml)