Subject: Re: [xsl] Re: Structuring multiple HTML tables based on the value of a child node|
From: "Mark Peters" <flickrmeister@xxxxxxxxx>
Date: Tue, 5 Jun 2007 09:15:49 -0400
Half of all knowledge is knowing where to find it -- and in this case, knowing what it's called. :-)
You failed to guess the right keyword: "grouping".
This is a classic grouping problem. In XSLT 2.0 such problems are easy, use xsl:for-each-group. In XSLT 1.0 they are much harder, except that the code has been written many times. See http://www.jenitennison.com/xslt/grouping.
Michael Kay http://www.saxonica.com/