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:
At least one HTML web page, because that’s where the browser starts.
The
SaxonJS2.rt.js
library. This is the “runtime” for SaxonJS. It’s a pure JavaScript implementation of the XSLT 3.0 processor.Your stylesheet, in a compiled form. (We’ll come back to that later.)
A single line of JavaScript “glue” to get the browser going.