I'm testing a series of stylesheets created by an external application where they works fine.

When compiling them using s9api XsltCompiler I got errors, but the only message it throws is :

net.sf.saxon.s9api.SaxonApiException: Failed to compile stylesheet. 1 error detected.

The code as follows

Processor proc = new Processor(true);
XsltCompiler comp = proc.newXsltCompiler();
XsltExecutable exp = comp.compile(new StreamSource(new File(xslFile)));

How can I retrieve additional error information from the compiler ?

Thanks in advance,
Best Regards