NodeJs XSLT 转换 [英] NodeJs XSLT Transformation

查看:67
本文介绍了NodeJs XSLT 转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在 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 现在 在 Node.js 和浏览器中支持 XSLT 3.0!

以前的回答

您唯一的(纯 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:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆