3. The SaxonJS Object
The interface between the browser (JavaScript) and the
stylesheet (compiled XSLT), is the SaxonJS
object.
(I promise you don’t need to know JavaScript to understand this.)
You can get information out of the
SaxonJS
object, or make it do things on your behalf, by calling “methods” on it. (That’s a technical way of saying you writeSaxonJS.something()
in ascript
element.)SaxonJS.getProcessorInfo()
returns information about the SaxonJS processor.SaxonJS.transform()
runs a transformation. (We’re going to use this one a lot.)There are others; all the gory details are in Appendix A, API Quick References.