use of eu.esdihumboldt.hale.io.xslt.internal.FailOnInvalidReference in project hale by halestudio.
the class XslTransformationUtil method createStrictVelocityContext.
/**
* Create a new {@link VelocityContext} that lets template merging fail if
* an invalid reference is encountered.
*
* @return the velocity context
*/
public static VelocityContext createStrictVelocityContext() {
VelocityContext context = new VelocityContext();
EventCartridge eventCartridge = new EventCartridge();
eventCartridge.addEventHandler(new FailOnInvalidReference());
context.attachEventCartridge(eventCartridge);
return context;
}
Aggregations