{
try {
response.setContentType("text/html");
XSLProcessorImpl xsl = getStylesheet( dir, template );
OutputMethodHandlerImpl outputMethodHandler =
new OutputMethodHandlerImpl(xsl);
xsl.setOutputMethodHandler(outputMethodHandler);
outputMethodHandler.setDestination( new ServletDestination(response) );
xsl.parse( new InputSource( (new URL( "file:"+fileName )).toString() ) );
}
catch(Exception e) {