Jump to content

XSLT/Muenchian grouping

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Kallax (talk | contribs) at 03:30, 18 June 2008 (Created page with 'Muenchian grouping is a style of grouping used in XSL Transformations that identifies keys in the results and then queries all nodes with that key. This differs...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Muenchian grouping is a style of grouping used in XSL Transformations that identifies keys in the results and then queries all nodes with that key. This differs from the common alternative whereby each node is checked against the previous node to determine if the key is different (this would indicate the beginning of a new group). This method also requires that the XML is already ordered by the key. In both cases the key can take the form of an attribute or element.

The unique identifier is referred to as a key because of the use of the 'key' function to identify and track the group variable.

The technique should become obsolete in XSLT 2.0 which introduces the new for-each-group tag.

Examples of Muenchian grouping XSL Transformations can be found at TopXML.

There is a good article on different implementation options here.

The method is named after Steve Muench, who proposed the method in May 2000.