xsl-list
[Top] [All Lists]

RE: grouping/position problem

2005-04-24 10:11:58

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/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>