Re: [xsl] thanks! now help on alternating rows needed.

Subject: Re: [xsl] thanks! now help on alternating rows needed.
From: "Bill Carter" <bcarter2003@xxxxxxxxxxx>
Date: Sat, 07 Sep 2002 15:45:57 -0500
awesome, you the best. I pounded my head against this one for 1 1/2 days. now hopefully I haven't missed anything with my logic on this simple example and the complicated one back at work.

thanks!!!
will


From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] thanks! now help on alternating rows needed.
Date: Sat, 07 Sep 2002 22:00:58 +0200

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


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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



Current Thread