[xsl] XML grouping by attribute using Muenchian method?

Subject: [xsl] XML grouping by attribute using Muenchian method?
From: nicolas.m@xxxxxxxxxxx
Date: Wed, 26 Nov 2003 10:10:36 +0100
Hi

This is my XML

<bookshelf>
  <book type="myshelf" title="some book" /> 
  <book type="yourshelf" title="some other book" /> 
  <book type="myshelf" title="yet some other book" /> 
</bookshelf>

I want to group these books by attribute "type" e.g. looking like this

myshelf
        some book
        yet some other book
yourshelf
        some other book

I've been messing around with keys but I can't get the desired result...

Thanks
Nicolas


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread