But XSLT can be replicated with JavaScript and the reverse is, sadly, untrue.
So if only one needed to go, it seems obvious which it should be.