That's a standard grouping question. Grouping is a lot easier using XSLT 2.0, but if you're stuck with xsltproc (which only supports 1.0) you need to learn about Muenchian grouping. You'll find it described in any good XSLT textbook and there are plenty of tutorials on the web.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|