public NodeInfo executeXSLFunction(XPathContext context, FunctionEntry fe, NodeInfo params) throws Exception { String oldFnPath = fnPath; CRC32 crc = new CRC32(); crc.update((fe.getPrefix() + fe.getId()).getBytes()); fnPath += Long.toHexString(crc.getValue()) + "/"; XdmNode n = executeTemplate(fe, S9APIUtils.makeNode(params), context); fnPath = oldFnPath; if (n == null) { return null; } return n.getUnderlyingNode(); }
public NodeInfo executeXSLFunction(XPathContext context, FunctionEntry fe, NodeInfo params) throws Exception { String oldFnPath = fnPath; CRC32 crc = new CRC32(); crc.update((fe.getPrefix() + fe.getId()).getBytes()); fnPath += Long.toHexString(crc.getValue()) + "/"; XdmNode n = executeTemplate(fe, S9APIUtils.makeNode(params), context); fnPath = oldFnPath; if (n == null) { return null; } return n.getUnderlyingNode(); }
} catch (java.lang.reflect.InvocationTargetException e) { Throwable cause = e.getCause(); String msg = "Error invoking function " + fe.getId() + "\n" + cause.getClass().getName(); if (cause.getMessage() != null) {
} catch (java.lang.reflect.InvocationTargetException e) { Throwable cause = e.getCause(); String msg = "Error invoking function " + fe.getId() + "\n" + cause.getClass().getName(); if (cause.getMessage() != null) {
cause = e.getCause(); String msg = "Error invoking " + fe.getId() + "\n" + cause.getClass().getName(); if (cause.getMessage() != null) {
cause = e.getCause(); String msg = "Error invoking " + fe.getId() + "\n" + cause.getClass().getName(); if (cause.getMessage() != null) {