Search code examples
xmlxsltbrowserxslt-2.0

What browsers support XSLT 2.0?


The Safari browser does not support XSLT 2.0 documents.

What browsers, if any, support XSLT 2.0?


Solution

  • Browsers do not (yet?) support XSLT 2.0, natively, nor the current version XSLT 3.0. For XSLT 3 with JavaScript in the browser or with Node.js the SaxonJS library from Saxonica is a good option.

    Another option I have explored successfully is using the CheerpJ 3 Java 8 to JavaScript/web assembly runtime to run Saxon HE 12 Java in the browser (even in a web worker!), an online fiddle is at https://martin-honnen.github.io/cheerpj3-saxonhe12-fiddle/, the source repository is at https://github.com/martin-honnen/martin-honnen.github.io/tree/master/cheerpj3-saxonhe12-fiddle.

    Earlier, when the original question was asked, there were two XSLT 2 options in the browser:

    • Saxon 9 CE is a JavaScript-based XSLT 2.0 implementation.
    • Frameless is another, more light-weight XSLT 2.0 implementation in the browser, supporting large parts of the XSLT 2.0 and XPath 2.0 functionality

    See also: