}
outputDebugInfo(xdoc, settings, "transformation-result.xml");
}
public static void transform(Document xdoc, String query, String morpher) throws IOException, XQueryException, ParsingException {
XQuery xmorpher = XQueryPool.GLOBAL_POOL.getXQuery(morpher, null);
Nodes nodes = query(query, xdoc, null);
Log.info("Transformation query [{0}] returned {1} nodes", query, nodes.size());
XQueryUtil.update(nodes, xmorpher, null);
}