Source[] sources = resolver.resolve(null, null, locations); if (sources.length != 1 || !(sources[0] instanceof StreamSource)) { quit("Module URI Resolver must return a single StreamSource", 2);
Source[] sources; try { sources = resolver.resolve(null, null, locations); } catch (Exception e) { if (e instanceof XPathException) {