[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xslt 2. index-of, nodes
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|