Geeks With Blogs
John Workman The Workdog's weblog.... a brain dump, of sorts.

The hardest thing you can do in XSLT is to do a multi-level grouping.  I had come up with a way using the Muenchian Method and "not (preceeding::...)"  to manage multi-level grouping.  It did the trick, but was very inefficent. 

A sharp, young developer on my team pointed me to a post by Jeni Tennison at that describes a great way to efficiently handle multiple level grouping in an xml file. 

The basis is to concatenate the three parts of the key to make a unique key. 

<xsl:key name="GLAccount"  match="Record"  use="concat(@site_id, ' ',  @date, ' ', @glaccount)"/>

Take a look at the above link.  It's worth reading.





Posted on Friday, November 17, 2006 8:45 PM XML | Back to top

Comments on this post: XSLT Grouping & Muenchian Method Question

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © John Workman | Powered by: