[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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 |
Something like: > >> > >> <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)"> > ... > </xsl:for-each-group> > 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". Michael Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xslt 2. index-of, nodes, Jeni Tennison | Thread | RE: [xsl] xslt 2. index-of, nodes, David . Pawson |
RE: [xsl] XSLT Architecture: Next S, Michael Kay | Date | RE: [xsl] Make safe XML, Michael Kay |
Month |