1. Using SaxonJS in the browser

SaxonJS works in all the modern browsers, even mobile ones, provided that JavaScript is enabled. It consists of four parts:

  1. At least one HTML web page, because that’s where the browser starts.

  2. The SaxonJS2.rt.js library. This is the “runtime” for SaxonJS. It’s a pure JavaScript implementation of the XSLT 3.0 processor.

  3. Your stylesheet, in a compiled form. (We’ll come back to that later.)

  4. A single line of JavaScript “glue” to get the browser going.