Highlighting alternate rows in BI Publisher
Hi,
I want to highlight alternate rows in report created using RTF template in MS Word using BI Publisher plug-in.
I am able to successfully highlight alternate rows only for the first column of the row (as shown below), where as I want to highlight the entire row.
The code I used is:
<?if@row:position() mod 2=0?><xsl:attribute name="background-color" xdofo:ctx="incontext">green</xsl:attribute><?end if?>
<?if@row:position() mod 2=0?><xsl:attribute xdofo:ctx="incontext" name="background-color">#CC0000</xsl:attribute><?attribute@incontext:color;'green'?><?end if?>
<?if@row:position() mod 2=0?><?attribute@incontext:color;'red'?><?end if?>
The last piece of code is able to highlight the text of every alternate rows, but my requirement is I want to highlight the entire background of each cell in the row (shown below)