var saxon = require('saxonXslt');

saxon.XQueryProcessor.prototype.setContextItemFromFile(filename);

Loads context item for subsequent queries.

  • filename → the path to the context item document
  • return ← void

saxon.XQueryProcessor.prototype.executeQueryToString(xmlFilePath, query);

Loads executes a query.

  • xmlFilePath → the path to the xml document
  • query → the query in string
  • return ← a node::Buffer with the results