I need to map an incremental variable in XSLT to a target column. Below is the pseudo code am expecting to be done in XSLT.
varcounter = 0
for each outer loop
print varcounter
varcounter = varcounter +1
for each inner loop
print varcounter
varcounter = varcounter +1
end for each inner loop
end for each outer loop.
Incrementing is not supported in SOA XSLT. I cant use position() as well as the variable needs to be persisted between outer and inner for loops.
Please suggest how can implement using a template or any other ways.