public XmlExtensionFunction ResolveFunction(string name, string ns, int numArgs, IErrorHelper errorHelper) { Type type; if (_nsToType.TryGetValue(ns, out type)) { try { return _extFuncs.Bind(name, ns, numArgs, type, XmlQueryRuntime.EarlyBoundFlags); } catch (XslTransformException e) { errorHelper.ReportError(e.Message); } } return null; } }