To add an xsl:for-each statement using the context menu:

  1. Right-click the target node and select Add XSL Instruction -> for-each from the context menu that appears. An xsl:for-each statement is added as the parent node of the target node.

  2. To set the source node-set to loop over, drag and drop the source node to the xsl:for-each statement.

    Figure 41-20 shows an example of creating the xsl:for-each statement. The source PurchaseOrder document contains the Item node. The Item node is a repeating node, as represented by its icon. For each Item node in the source document, an Item node is created in the target document using the xsl:for-each statement.

    Figure 41-20 Creating an xsl:for-each Statement

    Description of Figure 41-20 follows
    Description of "Figure 41-20 Creating an xsl:for-each Statement"