How to Duplicate an Element

In order to duplicate a target node in Map view, the node must have been defined as a repeating node in the target schema. For certain cases, you can create repeating nodes using for-each loops, as discussed in the preceding section. In other cases, you may need to create several independent instances of a node and map data to them through different areas of the source document.

To duplicate a repeating target node:

  1. If the target node text is grayed, and in italics, right-click the node and select Create Node in XSLT from the context menu that appears.

    Figure 41-26 Creating Node in XSLT

    Description of Figure 41-26 follows
    Description of "Figure 41-26 Creating Node in XSLT "
  2. Right-click the node again and select Duplicate from the context menu that appears. The node is duplicated.

    Figure 41-27 Duplicate Contact Nodes

    Description of Figure 41-27 follows
    Description of "Figure 41-27 Duplicate Contact Nodes"
  3. Map the appropriate fields from the source document to the two duplicate elements.

    In the following figure, the duplicate Contact nodes in the target tree are mapped to different areas of the source document. The first Contact node is mapped to the ShipTo data. The second Contact node is mapped to the BillTo data.