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:
http://xml.apache.org/xalan-j/extensions.html
http://saxon.sourceforge.net/saxon6.5.2/extensions.html
The following needs to be accomplished in order for the transformer 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.