var saxon = require('saxonXslt');

saxon.XsltProcessor.prototype.parameters

An object that takes parameter name value pairs. They will get passed to the stylesheet

saxon.XsltProcessor.prototype.setSourceFromFile(xmlFilePath);

Loads xml document.

  • sxmlFilePath → the path to the xml

saxon.XsltProcessor.prototype.setSorceFromString(xml);

Precompiles the string for subsequent transforms.

  • xml → xml in a string

saxon.XsltProcessor.prototype.setSourceFromFile(stylesheetFilePath);

Loads stylesheet and precompiles for subsequent transforms.

  • stylesheetFilePath → the path to the stylesheet

saxon.XsltProcessor.prototype.compileFromString(stylesheet);

Precompiles the string for subsequent transforms.

  • stylesheet → stylesheet in a string

saxon.XsltProcessor.prototype.transformFileToString(xmlFilePath[, stylesheetFilePath]);

Performs a transform

  • xmlFilePath → the path to the xml document
  • stylesheetFilePath → the path to the stylesheet is optional if your stylesheet was already in the compileFromFile or compileFromString method
  • return ← a node::Buffer with the results

saxon.XsltProcessor.prototype.transformToString(xmlFilePath[, stylesheetFilePath]);

Performs a transform provided the xml and stylesheet have been set and compiled

  • return ← a node::Buffer with the results