}
protected static XSLStylesheet compile(ElementAtExist source, DBBroker broker) throws XPathException {
long start = System.currentTimeMillis();
XSLElement stylesheet = new XSLElement(source);
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()) {