error handler should use views for each format (currently hardcoded in /src/main/_framework/error.xqy)