RE: Recursive grouping - simple, XSLT 1.0, fast non-M
> The presented algorithm works much faster than Muenchian > grouping without xsl:key
Is this the case? All the key retrievals in Muenchian grouping (and all key retrievals period, IIUC) can be done using brute force location paths with predicates. (But it's true that the particular contribution Steve Muench made to the method in XSLT may be the application of keys: is this what makes the method "Muenchian"?)
Not that I am recommending this.
I rather liked the proposed recursive method. Apart from performance (generally not a problem for me in any case :-), it's neat -- maybe even clearer to understand, for the newbie, than Muenchian.
The really under-utilized grouping method, however (to my mind), is the variable-based grouping technique Ken Holman has proposed and demonstrated. It may not be as general-purpose as these others -- but when it can be applied it's both simple and fast.
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format