The for-each statement allows you to loop through repeating elements.
To repeat elements with the for-each statement:
- Drag a source to a target to create a simple mapping.
- Click the target node to launch the Mapping Builder.
- Click Mapping Components.
You can either find or browse for the function.
-
To find the function, type for-each
in the Find field and click Find.
-
To browse for the function, expand the XSL Elements folder and locate for-each.
- Drag the for-each function onto the target tag statement.
The
for-each statement appears as a parent of the target tag. A new empty row is created with the text
Drag and Drop or Type here...
.
- Click Source.
- Drag a repeating source element onto the empty row.
This uses the source element as the basis for the loop.
- Click Save.