xsl-list
[Top] [All Lists]

Re: thanks! now help on alternating rows needed.

2002-09-07 13:00:58
Bill Carter wrote:
now we get to my real problem. I am trying to alternate row colors on a table.

The trick is to select only unique tickers and then use position()
to determine the bg color as usual:

  <xsl:for-each select=stocks/ticker[not(.=previous::ticker)]">
    ...

J.Pietschmann


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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