1) Create Java class that implements the extension function. You must inherit from IXPathFunction.
Note: To be able to test your function within JDeveloper you have to add the Orabpel.jar and Orabpel-common.jar libraries.
2) To be able to "see" the function within JDeveloper to have to create a extension function config file:
Within JDeveloper go to "Tools - Preferences" and select XSL Maps. Browse to the config file and restart JDeveloper afterwards.
Within the component view you can see the extension function:
3) Use within the XSL file.
Add the namespace of the extension function:
And then use with the XSL code:
4) Add to SOA Suite runtime.
To be able to use it you should copy the classes to:
Note: Do not forget package directories.
And you are Done!