I am trying to set the background color of every other
Here is the classic XSLT solution: Replace: with: Replace your Finally, add this template: The complete XSLT code becomes: When applied on the provided XML document: the wanted, correct result is produced: I am not using a for-each loop since I am using a few templates to filter data based on the nodes
element with:
Agent Name
State
Time
Agent Name
State
Time
MCCALLISTER AARON
Talking Out
9
APPELHANS BARRY
Talking Out
1
ARREDONDO KARLA
Talking Out
0