Execute a Query
try{
var xqueryProcessor = saxonProcessor.newXQueryProcessor();
var query = yield fs.readFile("./test/examples/query/books-to-html.xq", "utf8");
var htmlContent = xqueryProcessor.executeQueryToString("./test/examples/query/books.xml", query);
console.dir(htmlContent.toString());
//send htmlContent on its way to browser
saxonProcessor.release();
}
catch (err) {
console.dir(err.message);
}