def registerErrorHandler(f, ctx): """Register a Python written function to for error reporting. The function is called back as f(ctx, error).""" ret = libxsltmod.xsltRegisterErrorHandler(f, ctx) return ret