dept boss
----------------------------------
accounts Marge Simpson
finance AN Other
marketing Marge Simpson
IT Someone else
When I display the data on the page, it's displayed like this
boss dept
----------------------------------
Marge Simpson accounts
marketing
finance AN Other
IT Someone else
Each row has to have alternate colours, so like this
boss dept
----------------------------------
Marge Simpson accounts dark background colour
marketing dark background colour
finance AN Other light background colour
IT Someone else dark background colour
Because I have 2 rows for Marge Simpson, making the rows alternate colurs isn't working. Does anyone have any ideas of how I can do this
Thanks in advance
At the moment I'm doing other pages like this, which works fine (FYI i'm also using jaascript)
----------------------------------
accounts Marge Simpson
finance AN Other
marketing Marge Simpson
IT Someone else
When I display the data on the page, it's displayed like this
boss dept
----------------------------------
Marge Simpson accounts
marketing
finance AN Other
IT Someone else
Each row has to have alternate colours, so like this
boss dept
----------------------------------
Marge Simpson accounts dark background colour
marketing dark background colour
finance AN Other light background colour
IT Someone else dark background colour
Because I have 2 rows for Marge Simpson, making the rows alternate colurs isn't working. Does anyone have any ideas of how I can do this
Thanks in advance
At the moment I'm doing other pages like this, which works fine (FYI i'm also using jaascript)
Code:
<xsl:variable name=\"rowColour\">
<xsl:choose>
<xsl:when test=\"position() mod 2 = 0\">
dark background colour
</xsl:when>
<xsl:otherwise>
light background colour
</xsl:otherwise>
</xsl:choose>
</xsl:variable>