This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: alternating table background colour in an for-each 'loop'


Hey Michael,
   Try this 
<http://www.vbxml.com/snippetcentral/main.asp?view=viewsnippet&lang=&id=v20010125232950>

Regards,
  - Serdar | skilic.com

At 11:30 AM 19-07-01 +1000, you wrote:
>Hi everyone,
>
>I'm trying to alternate the background colour of table rows (e.g.
>row1=green, row2=blue, row3=green, row4=blue, ...) for a for-each loop. Is
>there an easy way to achieve this?
>
>I've tried to get the element position so I can check if it is even or not.
>But it looks like I can't get the absolute position of an element in a list
>with 'position()' inside a 'for-each' loop.
>
>Any ideas??
>
>Thanks,
>-michael
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]