*/
public Expression bind(int nameCode, String uri, String local, Expression[] staticArgs)
throws XPathException {
int fingerprint = nameCode & 0xfffff;
XSLFunction fn = stylesheet.getStylesheetFunction(fingerprint, staticArgs.length);
if (fn==null) {
return null;
}
if (fn.isOverriding() != overriding) {
return null;
}
UserFunctionCall fc = new UserFunctionCall();
fn.registerReference(fc);
fc.setFunctionNameCode(nameCode);
fc.setArguments(staticArgs);
fc.setConfirmed(true);
return fc;
}