Saxonica 9.7.0.4 中的 com.saxonica.ptree.StylesheetPackager 发生了什么? [英] What happened to com.saxonica.ptree.StylesheetPackager in Saxonica 9.7.0.4?

查看:36
本文介绍了Saxonica 9.7.0.4 中的 com.saxonica.ptree.StylesheetPackager 发生了什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 Saxonica PE 从 9.6.0.8 升级到 9.7.0.4,但在找到 StylesheetPackager 的合适替代品之前无法继续.我已经看过了,但还没有找到任何东西.该类在 9.7.0.1 中丢失了.

I'm trying to upgrade Saxonica PE from 9.6.0.8 to 9.7.0.4 but can't proceed until I find a suitable replacement for StylesheetPackager. I've looked but haven't found anything yet. The class went missing in 9.7.0.1.

推荐答案

我们在 9.7 中完全重新设计了样式表打包机制.导出样式表现在在包"级别而不是完整的样式表(当然它可以是完整的样式表)工作,并且导出文件包含已编译样式表的编码而不是源代码.在命令行中,您可以使用 -export:filename 将编译后的样式表导出到文件中;该文件是一个使用内部到撒克逊语词汇的 XML 文件,它可以在您使用源样式表的任何地方加载,例如作为 Transform 命令的 -xsl: 选项(Saxon 识别 XML 文件是包含源 XSLT 还是已编译的 XSLT).还可以使用 s9api API 中的方法导入和导出样式表包.

We completely redesigned the mechanism for stylesheet packaging in 9.7. Exporting a stylesheet now works at the level of a "package" rather than a complete stylesheet (though it can be a complete stylesheet of course), and the export file contains an encoding of the compiled stylesheet rather than the source. From the command line, you can use -export:filename to export the compiled stylesheet to a file; the file is an XML file using an internal-to-Saxon vocabulary, and it can be loaded anywhere you would use a source stylesheet, e.g. as the -xsl: option to the Transform command (Saxon recognizes whether the XML file contains source XSLT or compiled XSLT). Stylesheet packages can also be imported and exported using methods in the s9api API.

此处有更多详细信息:

http://www.saxonica.com/documentation/index.html#!using-xsl/编译

这篇关于Saxonica 9.7.0.4 中的 com.saxonica.ptree.StylesheetPackager 发生了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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