Custom Java Functions

Using Java functions in transformations.

TIBCO API Exchange Gateway bundles the Saxon Professional Edition (PE) product libraries with the installation package to support the Java functions in the XSLT files.

To create your own Java functions and use the functions in the XSLT files, complete the following steps:

Procedure

  1. Create the function in the Java program. The function must have static modifier.
  2. Create the jar file for the Java class. Put the jar file in the ASG_HOME/lib/ext/tpcl directory.
  3. Call the function using the package name as namespace in the XSLT file. See the following example: