The XSL below illustrates how to alternate color using the mod operator and setting the style class. This allows to to create a general ledger look.

    "log/entry">
        


            if test="position() mod 2 = 1">
                "class">LogEntryHighlight
            
if>
            if test="position() mod 2 = 0">
                "class">LogEntry
            
if>
            "."/>