Re: XSLT removed from Chrome browser

For the record, someone has done the same, but using SaxonJS, thus giving 
XSLT 3.


I have not tested this one.


Steven

On Thursday 19 November 2026 10:26:54 (+01:00), Steven Pemberton wrote:


This week, Google removed support for XSLT from the Chrome browser.


I have found a general solution that seems to work for me (I have more than 
3000 pages affected on my website).



You leave the xml-stylesheet PI in place, then it continues to work in 
browsers that still support it, and add a single <script>:


<?xml-stylesheet href="xsltforms/xsltforms.xsl" type="text/xsl"?>
<html xmlns="http://www.w3.org/1999/xhtml"

          xmlns:ev="http://www.w3.org/2001/xml-events"
          xmlns:xforms="http://www.w3.org/2002/xforms"
 >
<script src="xsltforms/xslt-polyfill.min.js 
<http://localhost/xforms/techniques/xsltforms/xslt-polyfill.min.js> " 
xmlns="http://www.w3.org/1999/xhtml"></script>
<head>




I've tried it on very many files, and it seems to work well.

Source: github.com/mfreed7/xslt_polyfill

Steven

Received on Friday, 20 November 2026 17:16:10 UTC