The for() function creates a numeric sequence.
for(expr1, expr2, [expr3])
<div gwc:repeat="i for(0, 20, 2)" gwc:content="i"/>