xsl-list
[Top] [All Lists]

RE: [xsl] Xpath - count preceding-siblings matching some condition

2007-04-30 11:35:44
That's wonderful!

Thanks!
Angela 

-----Original Message-----
From: Bjorndahl, Brad [mailto:brad(_dot_)bjorndahl(_at_)thermofisher(_dot_)com] 
Sent: Monday, April 30, 2007 1:19 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Xpath - count preceding-siblings matching some
condition

How about:

<table>
  <xsl:for-each-group select="//data/a" group-starting-with="a[(_at_)col-nbr
lt preceding-sibling::a[1]/@col-nbr]" >
    <xsl:variable name="row" select="position()" />
    <xsl:for-each select="current-group()" >
      <b col-nbr="{(_at_)col-nbr}" row-nbr="{$row}" />
    </xsl:for-each>
 </xsl:for-each-group>
</table> 

Brad.


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



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