public XObject execute(XPath path, XPathSupport execContext, Node context, int opPos, Vector args)
throws org.xml.sax.SAXException
{
try
{
Class function;
// first get package name if necessary
if ( m_funcName.indexOf(".") < 0 )
{
String thisName = this.getClass().getName();
int lastdot = thisName.lastIndexOf(".");
String classname = thisName.substring(0,lastdot+1) + m_funcName;
function = Class.forName(classname);
}
else
function = Class.forName(m_funcName);
Function func = (Function)function.newInstance();
path.installFunction(m_funcName, m_funcID, func);
return func.execute(path, execContext, context, opPos, args);
}
catch(ClassNotFoundException e)
{