Extension elements in Xalan can be written in Java or in a supported scripting language. Java-based extensions elements also allow the shortcut syntax that dispenses with the xalan:component or xalan:script elements.
xalan:component
xalan:script