问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/23215481/xsl-transformations-in-couchdb