[XSL-LIST Mailing List Archive Home]
RE: [xsl] xslt 2. index-of, nodes
Subject: RE: [xsl] xslt 2. index-of, nodes|
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 3 Jul 2003 21:04:46 +0100
> >> <xsl:for-each-group select="loc" group-by="@hl">
> >> <xsl:for-each-group select="current-group()" group-by="@side">
> >> <xsl:for-each-group select="current-group()" group-by="@pos">
> > Ah!
> > That's clearer. I've just been fighting group-by="concat...
> > which fails :-)
> Oh? It shouldn't fail -- you should be able to do:
> <xsl:for-each-group select="loc"
> group-by="concat(@hl, '+', @side, '+', @pos)">
Again, I haven't followed the thread, but note that the big difference
between these two constructs is that the value of position() is
different in the two cases. You get the same groups, but in the first
case they are "hierarchically" numbered, and in the second case, the
numbering is "flat".
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list