Using XSLT Extension Functions in Maps

To transform data as it is mapped from the source to the target document, you can add XSLT core or extension functions in your maps. The source schema can then output directly into a target document or serve as input to other extension functions in your map.

Note: For a listing of the extension functions provided by the Map Editor, see XSLT Extension Functions.  If the selection of available XSLT functions does not meet the needs of your business process, you can add your own user-defined extension function.

To use an XSLT Extension function in a map:

  1. Open your map.

  2. In the Map Editor, double-click the map link that you want to use an extension function to.
    The Transformation Rule Builder opens displaying the relative path to the closest mapped ancestor. If no mapped ancestor is available, the full path displays.

  3. Build a transformation rule.

  4. To save your map, select File>Save mapName.map from the menu bar.
    The save operation completes if the string is syntactically correct.

  5. View the transformation in the XSLT.
    Choose expressions appear in the .xsl file as <xsl:choose>.