XSLContext context = new XSLContext(broker.getBrokerPool());
context.setDefaultFunctionNamespace(Factory.namespaceURI);
XSLStylesheet expr = (XSLStylesheet) stylesheet.compile(context);
AnalyzeContextInfo info = new AnalyzeContextInfo((XQueryContext)context);
info.setFlags(Expression.IN_NODE_CONSTRUCTOR);
expr.analyze(info);
if (context.optimizationsEnabled()) {