Use the Transformation Rule Builder to define transformations for your maps. You can build a rule as a text string and then view the string in tree form.
When building a rule, you can add operators, functions, XSLT functions, or a Java method. To assist you in this process, review the guidelines for building rules before you begin.
To build a rule as a text string:
Double-click the
link for which you want to build a rule.
The Transformation Rule Builder opens on the canvas.
Place your cursor in the text box and choose from the following:
Type a period [.] to display the entire selection list and double-click one of the following to add it to your rule:
Function - To apply logic to your rule.
Operator - To define the rule evaluation types.
Type a letter in the text box to limit your display to only those items that begin with that letter. Double-click the one you want added to your rule.
Type the prefix syexts in the text box to display the Sybase-provided XSLT extension functions. Double-click the one you want to add to your rule.
Type the prefix java_lang in the text box to display the available Java core methods. Double-click the one you want to add to your rule.
For functions, such as Concat and Choose, with repeating arguments, right-click the string and select Add> from the shortcut menu to add arguments.
Drag an icon from the tool palette and drop it into the text box.
Move the cursor to another location in the string, and repeat step 2 until your rule is complete.
To save your rule, select File>Save All from the menu bar.
To parse the rule
and view it as a rule tree, double-click the string.
To return to the string-form, double-click the root node of the tree.
Click to close the Transformation Rule Builder.