Repeating table alternating row colors

K

kookie

I have a form, the final view for web display is a basic step action table. I
want to alternate the background row colors. I tried editinf the code in the
..xsl by adding this code
<code>
<xsl:attribute name="class"><xsl:choose><xsl:when test="position() mod 2 =
1">tablerowon</xsl:when><xsl:when test="position() mod 2 =
0">tablerowoff</xsl:when></xsl:choose></xsl:attribute>
<td class="class" width="20%">

</code>
tablerow on and tablerowoff are css classes with colors defined.

For some reason I can't get this to work.

Any Suggestions?
thanx!
 
K

kookie

Hey All,

This actually was much easier than I expected. I actually figured out that
this could be done by conditional formatting.
1. select the table
2. in the conditional formatting tab type "position() mod 2 = 0"
3. select your background or font color.
4. add a second color repeat this process and change "position() mod 2 = 1"

this will only apply changes to the cell or text in cell colors. to apply
this to the fields I have added the same conditional formatting to the fields
and removed the borders from form fields.
 
K

kookie

kookie said:
Hey All,

This actually was much easier than I expected. I actually figured out that
this could be done by conditional formatting.
1. select the table
2. in the conditional formatting tab select "This expression" and type "position() mod 2 = 0"
3. select your background or font color.
4. add a second color repeat this process and change "position() mod 2 = 1"

this will only apply changes to the cell or text in cell colors. to apply
this to the fields I have added the same conditional formatting to the fields
and removed the borders from form fields.
 
Top