SSA_Tech124
SSA_Tech124

Reputation: 599

How to get alternate background color as a particular color in RTF

In the RTF template, I want the alternate rows to have a light green color, when I am using the below tag, I am getting all rows with green and text background as green, not the entire row-

  <?if@row:position() mod 2=0?>
<xsl:attribute name="background-color">#e9f7ef</xsl:attribute>
 <?end if?>

I saw in the Oracle doc the below used -

<?if@row:position() mod 2=0?> <xsl:attribute name="background-color" xdofo:ctx="incontext">lightgray</xsl:attribute><?end if?>

but as soon as i add xdofo:ctx="incontext", i do not get any output at all.

How to get alternate background color as a particular color.

Upvotes: 0

Views: 1586

Answers (1)

EdHayes3
EdHayes3

Reputation: 1953

It is working for me. Make sure you are putting it in a field, and the field is within the for-each tag

enter image description here

Upvotes: 0

Related Questions