try {
val = subst.getValue(objectModel);
} 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);
}
if (this.select != null) {
objectModel.markLocalContext();
try {
Object obj = this.select.getValue(objectModel);
objectModel.put(ObjectModel.CONTEXTBEAN, obj);
objectModel.fillContext();
} 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, objectModel, executionContext, macroContext, namespaces, doc.getNext(), doc
.getEndDocument());