About the Expression Builder

Use the Expression Builder to view and edit your XPath expressions. This section provides an overview of the Expression Builder.

Displaying the Expression Builder

  1. Click a target element node.

    The Expression Builder is displayed. A Switch to Developer View Switch view icon icon and Close Close icon icon are displayed on the right side of the Expression Builder.


    Three icons appear in the upper left. At the far right, Developer and XSLT links appear. Six more icons appear further right. Below are the Sources section, Mapping Canvas, and Target section. Mappings appear between the Sources and Target sections.

  2. Drag a source element node to a target element node.

    The XPath expression is added to the Expression Builder.

  3. Click Switch to Developer View Switch view icon to view the developer path of the mapping.


    Three icons appear in the upper left. At the far right, Developer and XSLT links appear. Six more icons appear further right. Below are the Sources section, Mapping Canvas, and Target section. Mappings appear between the Source and Target sections. A Batch id source element is mapped to a Batch id target element.

  4. If you want to remove the value, click Erase Erase expression icon, then click Save Save expression icon to completely remove the mapping.

  5. Drag the source element node to the Expression Builder. You can also highlight the source element node and click Insert selected item Insert selected item icon to add a value to the Expression Builder.


    This image shows a mapped Batch id target element. At the bottom, the Expression Builder shows a value of $temp/nsmpr3:batchId.

  6. Click Save Save expression icon to save the mapping.

Using Set Text Mode

When there is no mapping in the Expression Builder, there is a Set Text Set expression builder text icon button. This option enables you to enter text in an element node. You can only have XPath expression or text in the Expression Builder. You cannot have both types.

  1. Highlight a target element node and click Set Text Set expression builder text icon in the Expression Builder to enter set text mode.

  2. Enter text in the Expression Builder.

    A letter icon is added to the node. When you place your cursor over the icon, the value you entered is displayed.


    A target element includes a box with a T shown with a tool tip that includes the text (25) you entered.

    Note:

    If you drag a source target node into the Expression Builder while in set text mode, the mapping value is literally added as text, and not as an XPath expression.

Entering Literal Values

You can enter literal values in the Expression Builder when you are not in set text mode.

  1. Enter text in the Expression Builder.

    This creates a value-of expression in the XSTL file instead of straight text. See Edit XSLT Code in the Mapper.