Mapping Functions

You can use the mapping functions built-in the Data Mapper to map source schema elements to the target schema elements. These mapping functions are listed as:

All these mapping functions comprise of sub-functions using which you can map elements. 
 
Steps to map elements using Mapping Function

  1. Ensure that the source and target schemas are loaded and all their elements are listed under their respective nodes.
  2. Click a target element. The target element node is displayed in the Mapping Graph Area (see Figure 439).

    Figure 439: Select Target Element

  3. Double-click a source element. The source element is displayed in the Mapping Graph Area (see Figure 440).

    Figure 440: Select Source Element

    You can double-click more source elements if required. This will display the selected source elements in the Mapping Graph Area (see Figure 441).



    Figure 441: Select Second Source Element

  4. Click the desired mapping function. This displays a list of sub-functions associated with the selected mapping function.
  5. Select the desired sub-function and use it to map the displayed source and target elements.
  6. Once you have performed the mapping activity, click Apply Mapping (  ) button to save the mapping.

Once you have mapped source and target elements, you can  view and validate the generated mapping XSL, from the Data Mapper screen. You can also view the target XML and  view and validate mapping output from this screen.

For details on using these mapping functions, refer to the section Using Mapping Functions. 
While mapping elements, certain suffixes are displayed next to source and target elements in the Source and Target Panels. These suffixes are explained in the table below.

Table 8: Suffixes of Source and Target Elements

Suffix

Description

(C)

Target element can be cloned to create another target element.

(CM)

Comments have been added for the target element.

(F)

For Each property has been applied for the target element.

(LV)

A local variable has been declared to the target element.

More than one suffix can be displayed next to a source and target element.