This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: thanks! now help on alternating rows needed.
- From: "J.Pietschmann" <j3322ptm at yahoo dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Sat, 07 Sep 2002 22:00:58 +0200
- Subject: Re: [xsl] thanks! now help on alternating rows needed.
- References: <F22lCPx33E1ioWwr2UA00000229@hotmail.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
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