无法从命令行使用 Saxon 找到 CatalogManager.properties
Cannot find CatalogManager.properties using Saxon from command line
我已经在 Centos 7 上安装了 saxon 和 saxon-scripts(使用 yum),以便能够在远程服务器上执行一些 XSLT 转换。
在我的本地机器上(Mac),做:
saxon -xi -o:/path/to/transformed.xml /path/to/original.xml /path/to/transformation.xsl
工作顺利。 Centos 上的相同命令给我:
Cannot find CatalogManager.properties
我已经从 Saxon 文档中查看了两个 Running XSLT from the Command Line and Using XML Catalogs,但那里的解释远远超过我的薪水等级。
是否可以忽略此目录管理器业务并在没有它的情况下从命令行执行转换?怎么办?
我真的不知道 saxon-scripts 做了什么,或者为什么会出错,但我建议你绕过它并直接调用 Saxon:write
java -cp:(classpath) net.sf.saxon.Transform -xi -o:/path/to/transformed.xml
-s:/path/to/original.xml -xsl:/path/to/transformation.xsl
其中(类路径)是安装 saxon JAR 文件的目录。
我已经在 Centos 7 上安装了 saxon 和 saxon-scripts(使用 yum),以便能够在远程服务器上执行一些 XSLT 转换。
在我的本地机器上(Mac),做:
saxon -xi -o:/path/to/transformed.xml /path/to/original.xml /path/to/transformation.xsl
工作顺利。 Centos 上的相同命令给我:
Cannot find CatalogManager.properties
我已经从 Saxon 文档中查看了两个 Running XSLT from the Command Line and Using XML Catalogs,但那里的解释远远超过我的薪水等级。
是否可以忽略此目录管理器业务并在没有它的情况下从命令行执行转换?怎么办?
我真的不知道 saxon-scripts 做了什么,或者为什么会出错,但我建议你绕过它并直接调用 Saxon:write
java -cp:(classpath) net.sf.saxon.Transform -xi -o:/path/to/transformed.xml
-s:/path/to/original.xml -xsl:/path/to/transformation.xsl
其中(类路径)是安装 saxon JAR 文件的目录。