if (!exp.usesContextItem()) {
System.err.println("Source document ignored - query does not access the context item");
sourceInput = null;
} else if (projection) {
PathMap map = exp.getPathMap();
PathMap.PathMapRoot contextRoot = map.getContextRoot();
if (explain) {
System.err.println("DOCUMENT PROJECTION: PATH MAP");
map.diagnosticDump(System.err);
}
if (contextRoot != null) {
if (contextRoot.hasUnknownDependencies()) {
System.err.println("Document projection for the context document is not possible, " +
"because the query uses paths that defy analysis");