Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Corrected links that should have been relative instead of absolute.

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

  • Math
  • String
  • Date
  • Aggregation
  • Conditional 
  • Axis 
  • Boolean
  • Context
  • DB

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

  1. Ensure that the source and target schemas destination layouts are loaded and all their elements are listed under their respective nodes.
  2. Click a target element. The target element node Mapping Expression tab from Mapping Functional Panel.
  3. Select a destination element which you want to map.

  4. Click the desired mapping expression. This displays a list of sub-functions associated with the selected mapping expression.
  5. Select the desired sub-function and use it to map the source and destination elements. For example, using Concat sub-function.

  6. Click String mapping function and select Concat sub-function. The syntax for the Concat sub-function is displayed in the Mapping Graph Expression Area (see Figure 439).

    Image Removed

    Figure 439: Select Target Element


    Image Added

  7. This syntax has two parameters. Double-click a source element. The source element is displayed in the Mapping Graph Area (see Figure 440).

    Image Removed

    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).

    Image Removed
    Figure 441: Select Second Source Element
  8. Click the desired mapping function. This displays a list of sub-functions associated with the selected mapping function.
  9. Select the desired sub-function and use it to map the displayed source and target elements

    source element that you want to set as the first parameter. This displays the selected source element in the syntax.

  10. Similarly, double-click another source element as the second parameter. This is displayed in the syntax.

    Image Added

    You can indent the textual rule content as per your requirement.

  11. This maps elements using the concat sub-function. A line is displayed between the source and target panels showing the mapping of the source element to the target element.
  12. Once you have performed the mapping activity, click Apply Mapping ( Image Removed ) 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
  1. click Save button to save the mapping.

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 destination elements in the Source and Target destination Panels. These suffixes are

Anchor
Table of Suffixes
Table of Suffixes
These suffixes are explained in the table below.

 Table 8: Suffixes of Source and Target Elements

(C)

Target destination element can be cloned to create another target destination element.

(CM)

Comments have been added for the target destination element.

(F)

For Each property has been applied for the target destination element.

(LV)

A local variable has been declared to the target destination element.

Suffix

Description

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