Using the XPath Building Assistant in the XSLT Mapper

This section provides an example of using the XPath Building Assistant to build an expression in the Edit XPath Expression dialog of the XSLT Mapper.

To use the XPath Building Assistant in the XSLT Mapper:

  1. Go to the XSLT Map Editor.
  2. From the Component Palette list, select Advanced Functions.
  3. Scroll down the list to the xpath-expression function.
  4. Drag and drop the xpath-expression function into the XSLT Map Editor, as shown in Figure B-8.
  5. Double-click the function to display the Edit XPath Expression dialog.
  6. Click the cursor inside the XPath Expression field.
  7. Press Ctrl and then the space bar to display a list of values for building an expression, as shown in Figure B-9.

    Figure B-9 List of Values for Building an Expression

    Description of Figure B-9 follows
    Description of "Figure B-9 List of Values for Building an Expression"
  8. Make a selection from the list (for this example, concat(String) as String) in either of the following ways:
    • Scroll down the list and double-click concat(String) as String.

    • Enter the letter c to display only items starting with that letter, then select and double-click concat(String) as String.

    Figure B-10 provides details.

    Figure B-10 Expression List Selection

    Description of Figure B-10 follows
    Description of "Figure B-10 Expression List Selection"

    This selection is added to the XPath Expression field. The list automatically displays again with different options and prompts you to enter the next portion of the XPath expression.

  9. Continue this process to build the remaining parts of the XPath expression.
  10. Click OK to close the Edit XPath Expression dialog when complete.