The Xalan and Saxon processors support the use of extension elements and extension functions. Unlike a literal result element, which the stylesheet simply transfers to the result tree, an extension element performs an action. The extension is usually used because the xslt stylesheet fails in providing adequate functions to the user for accomplishing a more complex task.
Samples on how to use extensions can be found at:
for Xalan - http://xml.apache.org/xalan-j/extensions.html
for Saxon 6.5.5 - http://saxon.sourceforge.net/saxon6.5.5/extensions.html
for Saxon 9.0.0.6 - http://www.saxonica.com/documentation/extensions/intro.html
In order to ease the configuration of XSLT processor extension path, you can use the Extensions button of the scenario edit dialog.
As alternative the manual configuration must be performed with the following steps in order to find and use successfully the Java extension classes:
Place extension jars in the <oXygen/> plugin lib
folder.
Add references to the custom jars in the plugin/runtime section of the plugin.xml
file.
Restart Eclipse. Make sure you start Eclipse passing it -clean in the command line arguments, otherwise the new jars will not be seen by Eclipse.
Place extension jars in the <oXygen/> plugin lib
folder.
Add references to the custom jars in the plugin/runtime section of the plugin.xml
file.
Restart Eclipse. Make sure you start Eclipse passing it -clean in the command line arguments, otherwise the new jars will not be seen by Eclipse.