xsl-list
[Top] [All Lists]

Re: [xsl] grouping across a collection()

2010-12-20 10:17:06
On Mon, Dec 20, 2010 at 16:02, David Carlisle 
<davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:
On 20/12/2010 15:06, James Cummings wrote:

<xsl:for-each-group select="$docs//tei:l" group-by="position()">

well that's syntactically correct but since position() is a different number
(starting at 1 and going up by 1) for each item in the sequence, it won't
actually group anything,

what did you actually want to group on?

I guess what I wanted to group on was their relative position in that
sequence with respect to the document from which they originate. So
all first lines from each document are grouped together and all second
lines are in the second table row, etc.

-James

--~------------------------------------------------------------------
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>
--~--