Alternate row highlighting issues
Using the following code : <?if@row:position() mod 2=0?> <xsl:attribute name="background-color" xdofo:ctx="incontext">#CCCCCC</xsl:attribute><?end if?>
I am using this to alternate row shading in my for-each-group tables. However this is buggy at best. This code works in a table with just a for-each loop. However when I add it to a table where its in a for-each-group, it does not work. That being said I'm not convinced its the for-each-group giving it an issue because if I change it to mod 2=1 then the whole table is shaded.
Also I get "The Conditional format is not inside a table and can therefore not be applied to a table row" error whenever I try in open up the tag in the for-each-group ( from when I copy it from the table that it actually works in ). This is BS cause its in a table. Ive searched for many hours and I know others have received this message and said its a bug. But the bug refers to not being able to do this alternate row highlighting in RTF, EXCEL, but it should work in PDF. I am doing