xslprocessor.setQuietConflictWarnings(ourDefaultParameters.isNoCW(request));
xslprocessor.setProblemListener(listener);
if (debug)
{
ByteArrayOutputStream baos = new ByteArrayOutputStream();
XSLTResultTarget outBuffer = new XSLTResultTarget(baos);
setStylesheetParams(xslprocessor, request);
xslprocessor.process(xmlSource, xslSource, outBuffer);
baos.writeTo(response.getOutputStream());
writeLog(listener.getMessage(), response.SC_OK);
}
else
{
setStylesheetParams(xslprocessor, request);
xslprocessor.process(xmlSource, xslSource,
new XSLTResultTarget(response.getWriter()));
}
}
catch (Exception exc)
{
ApplyXSLException axe = new ApplyXSLException("Exception occurred during Transformation:"