* 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 = config.newStaticQueryContext();
final XQueryExpression exp = sqc.compileQuery(query);
final DynamicQueryContext dynamicContext = new DynamicQueryContext(config);
dynamicContext.setContextItem(config.buildDocument(new PullSource(in)));
Properties props = new Properties();
props.setProperty(OutputKeys.INDENT, "yes");
exp.run(dynamicContext, new StreamResult(out), props);