The Safari browser does not support XSLT 2.0 documents.
What browsers, if any, support XSLT 2.0?
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:
See also: