Does anyone have a way to change the background color of every other row in a table with xsl-fo. I'm using nFOP to create pdf's and have accomplished most everything I've needed but would like to have say every other row have a light gray background. If I statically set the rows of the table this would be easy, but my rows are generated with an <xsl-for each> as I do not know ahead of time how many results I'll have in my xml.
Is there a way to tell how many rows end up in the table and then apply formating, or say apply conditional formatting to odd or even numbered rows?
Thanks in advance.