Work with Multiple Value Statements

You can add multiple value-of statements or multiple XSLT statements under a leaf node.

To work with multiple value statements:
  1. Click Toggle functions Mapper functions icon.
  2. Click XSLT.
  3. Drag a value-of statement to a leaf element target in the mapper. For this example, value-of is added as a child of optyId.

    This image shows the Functions > Output section on the right. A value-of statement is being dragged to optyId in the Target tree.

    Multiple value-of statements are added to the leaf node.


    This image shows the Functions > Output section on the right. A value-of statement is being dragged to below another value-of statement of the parent optyId in the Target tree.

  4. Define appropriate mapping logic for each value-of statement. For example, add a choose statement and a when statement with a defined value to the first value-of statement and an otherwise statement to the second value-of statement.

    Three icons appear in the upper left. Below this is the Sources tree, the Mapping Canvas section, and the Target tree. In the upper right of the page are the Developer button, XSLT button, and six icons. The target Id element is mapped to the source optyId element, which includes child choose and when elements. The when element is attached to a T icon. The source Id element is mapped to another target value-of element. A second source Id element is mapped to another value-of element.

Note:

Multiple value-of XSLT statements in a leaf node continue to remain visible in the mapper even if you disable XSLT.