allow clients of SaxonJS to supply a URI resolver function
SaxonJS doesn't yet allow users to supply their own URI resolver.
Related discussion in XML.com slack instance: https://xmlcom.slack.com/archives/C011NLXE4DU/p1654568529708119
I came across the need for such a feature while trying to make resources stored in browser local storage (IndexedDB) available to XSLT running in the browser. I was hoping to be able to supply a resolver that would allow me to handle indexeddb: URIs.
I tried using the browser's "Service Worker" functionality, which can intercept the browser's "fetch" requests, and then either allow them to be handled normally, or else return a promise to fulfill them in some other way. Unfortunately I found that approach is applicable only to URI schemes which the browser already knows about (e.g. http, https, file ...) and also is constrained by some irrelevant security restrictions.
Please register to edit this issue