* Run a query against input that is supplied using the pull interface
*/
public void query(PullProvider in, String query, OutputStream out) throws XPathException {
final StaticQueryContext sqc = new StaticQueryContext(config);
final XQueryExpression exp = sqc.compileQuery(query);
final DynamicQueryContext dynamicContext = new DynamicQueryContext(config);
dynamicContext.setContextNode(sqc.buildDocument(new PullSource(in)));
Properties props = new Properties();
props.setProperty(OutputKeys.INDENT, "yes");
exp.run(dynamicContext, new StreamResult(out), props);