RE: [xsl] grouping/position problem

Subject: RE: [xsl] grouping/position problem
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 24 Apr 2005 18:11:58 +0100
> Quick question, though: what is the group-adjacent='@year' 
> doing that's 
> different than group-by I was using?

If the items to be grouped are already sorted on the grouping key, then
group-by and group-adjacent will produce the same result, but group-adjacent
may be more efficient because each group can be processed sequentially as it
is encountered, rather than having to build all the groups in memory before
processing starts. In this case it's simply taking advantage of the fact
that you're already done the sorting and don't need to do it again.

Michael Kay
http://www.saxonica.com/

Current Thread