val = expr.getValue(expressionContext);
} catch (Exception exc) {
throw new SAXParseException(exc.getMessage(), getLocation(), exc);
} catch (Error err) {
throw new SAXParseException(err.getMessage(),
getLocation(), new ErrorHolder(err));
}
buf.append(val != null ? val.toString() : "");
}
}
uri = buf.toString();
}
StartDocument doc;
try {
doc = executionContext.getScriptManager().resolveTemplate(uri);
} catch (ProcessingException exc) {
throw new SAXParseException(exc.getMessage(), getLocation(), exc);
}
ExpressionContext selectExpressionContext = expressionContext;
if (this.select != null) {
try {
Object obj = this.select.getValue(expressionContext);
selectExpressionContext = new ExpressionContext(expressionContext);
selectExpressionContext.setContextBean(obj);
TemplateObjectModelHelper.fillContext(obj, selectExpressionContext);
} catch (Exception exc) {
throw new SAXParseException(exc.getMessage(), getLocation(), exc);
} catch (Error err) {
throw new SAXParseException(err.getMessage(), getLocation(),
new ErrorHolder(err));
}
}
try {
Invoker.execute(consumer, expressionContext, executionContext,
macroContext, doc.getNext(), doc.getEndDocument());