CouchDB中的XSL转换 [英] XSL Transformations in CouchDB
问题描述
是否可以在 CouchDB的
List函数
中执行 XSL转换
code>?似乎不太可能,因为不能在浏览器的上下文之外完成类似 var xsltProcessor = new XSLTProcessor()
的事情。
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.
有办法吗?
推荐答案
如果控制CouchDB服务器,肯定有办法。 CouchDB支持可插入查询引擎,因此您可以编写一个查询引擎,以支持某种XSL转换。
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.
我猜默认基于SpiderMonkey的默认查询引擎不支持开箱即用。我认为有一个实验性的基于NodeJS的查询引擎可能会更好。
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.
这篇关于CouchDB中的XSL转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!