The Repeat element looks like this:
Use the repeat element to execute a sub tree of elements a (specific) number of times. This number can be a fixed number or e.g. a number found via an Xpath expression. The number to run can be set as seen below:
XML file:
In the example above the number of runs is determined by a number which is found in the XML file. As the number found is 3, the repeat loop is run 3 times. The number of repetitions can also be set to a constant, variable, function and even a value found in a translation table.
Another similar loop element is ForEach, that can span a set of XML nodes.