Using %25loop%25 tag in Service Output template

How do you loop through a complex structures using the %loop% tag in service output templates.

if you have the following example structure:
record
record
record
recordList
record[0] <----- starting here
string
recordList
record[0]
string
string
record
stringList
string
string
string
.
.
.
etc …
How can I loop through the record list get the all records and then loop through all the record’s sub elements to print out the values " %value%" in that structure. I have tried using the -struct option, and nesting several loops to try and properly iterate through the struct, but I am not having any luck. Has any had to deal with this before?
–steve