> (Though I've written repeatedly about my preferred alternative to XSLT)

Link to example?

I've previously suggested the XML stylesheet tag should allow

    <?xml-stylesheet type="application/javascript" href="https://example.org/script.js"?>
which would then allow the script to use the service-worker APIs to intercept and transform the request.

Oh yes sorry I thought you meant you had a blog post or something on it.