【问题标题】:SaxonJS - xslt3 - ObjectNotFound: (xslt3:String) [], CommandNotFoundExceptionSaxonJS - xslt3 - ObjectNotFound: (xslt3:String) [], CommandNotFoundException
【发布时间】:2021-03-10 02:40:35
【问题描述】:

我想用 Saxon JS 转换带有样式表 XSLT 的 XML 文件。

我做到了: npm 安装 saxon-js npm install xslt3

下一步是:xslt3 -xsl:xslt_filepath.xslt -export:books.sef.json -nogo

我遇到错误

xslt3 : Die Benennung "xslt3" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise 
des Namens, oder ob der Pfad korrekt ist (sofern enthalten), und wiederholen Sie den Vorgang.
In Zeile:1 Zeichen:1
+ xslt3
+
    + CategoryInfo          : ObjectNotFound: (xslt3:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

packet.json 有

"xslt3": "^2.0.2",
"saxon-js": "^2.0.2",

可能是什么问题?

我的 Windows 10 PC 和 Windows 10 笔记本电脑上出现同样的错误

【问题讨论】:

    标签: saxon saxon-js


    【解决方案1】:

    尝试使用npm 命令上的-g(全局)选项进行安装。

    【讨论】:

      猜你喜欢
      • 2019-10-07
      • 1970-01-01
      • 2020-04-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-01
      • 2017-02-20
      • 2016-09-15
      相关资源
      最近更新 更多