NodeJs XSLT 转换 [英] NodeJs XSLT Transformation
问题描述
我需要在 nodejs 中使用 XSLT 转换 XML 文档.我似乎找不到当前维护并包含 XSLT 完整标准的 nodejs 库.
I need to transform an XML document using XSLT in nodejs. I can’t seem to find a library for nodejs that is currently maintained and encompasses the full standard of XSLT.
有没有人对包或原生 nodejs 中的东西有任何建议来执行转换?
Does anyone have any suggestions on a package or something in native nodejs to perform transformation?
推荐答案
2020 更新
Saxon-JS 2 现在
以前的回答
您唯一的(纯 JavaScript,符合 XSLT 标准)希望是 Saxon-JS,但它可能还没有完全准备好在 Node.js 上运行:
Your only (pure JavaScript, XSLT standards compliant) hope is Saxon-JS, but it may not be entirely ready to run on Node.js yet:
- 适用于 Node.js 的 XSLT 2.0 或 3.0?
- Saxon-JS 应该只依赖于 JavaScript,而不是网络浏览器
- SaxonJS 1.1.0 是否与 NodeJS 8.9.4 兼容?立>
- Node.js 上的 SaxonJS
Michael Kay 在这里阅读 Q/A,可能会提供上述链接中所列内容之外的更新.
Michael Kay reads Q/A here and may perhaps provide an update beyond what's listed in the above links.
这篇关于NodeJs XSLT 转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!