Muenchian grouping
From Wikipedia, the free encyclopedia
|
|
This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed. (January 2011) |
| This article is an orphan, as few or no other articles link to it. Please introduce links to this page from related articles; suggestions may be available. (October 2008) |
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.