xsl-list
[Top] [All Lists]

RE: xslt 2. index-of, nodes

2003-07-03 13:04:46
 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



<Prev in Thread] Current Thread [Next in Thread>