Is it possible to do XSL Transformations
in a List Function
in CouchDB
? Is seems rather improbable, since something like var xsltProcessor = new XSLTProcessor()
can't be done outside the context of a browser.
Is there a way?
If you control the CouchDB server, there's definitely a way. CouchDB supports pluggable query engines, so you could code up a query engine that supports some kind of XSL transformations.
I guess the default SpiderMonkey-based query engine doesn't support it out of the box. I think there's an experimental NodeJS-based query engine floating around that might do better.
XSLTProcessor
inside a List Function and predictably it failed. All such libraries depend on browser "components" to do the work (ActiveX etc). I'm pretty sure at this point that there is no solution to this.