I've previously suggested the XML stylesheet tag should allow
<?xml-stylesheet type="application/javascript" href="https://example.org/script.js"?>