Saxon

This is used as a static object, providing a set of utility functions for:

Functions

Function

Description

getErrorHandler()

Returns a reference to the function set as the Saxon error handler.

getLogLevel()

Returns the level at which events, warning and errors are logged.

getVersion()

Returns the version number of the Saxon-CE processor.

newXSLT20Processor(xslt)

The factory method for creating a new XSLT20Processor object.

parseXML(arg)

Returns a new XML document object created from the lexical XML String passed as an argument.

requestXML(uri)

Emulates an XMLHTTPRequest, effectively returning an XML document object.

run(cmd)

Uses JavaScript literal object properties to execute an XSLT transform.

serializeXML(xml)

Returns a String that represents a serialization of the XML Node argument.

setErrorHandler(handler)

Sets a callback function to allow your own code to manage events and errors occurring in the XSLT20Processor object.

setLogLevel(level)

Sets the level at which events, warning and errors are logged.