XSLT 2.0 编辑
Although XSLT 2.0 is not natively supported in Firefox, it is possible via Saxon-B (Java) or, more recently, Saxon-CE (JavaScript) to perform XSLT 2.0.
For users
Saxon-CE
No extensions are required, Saxon-CE runs whenever a HTML page is loaded that links to the Saxon-CE JavaScript library.
Saxon-B
The XSL Results extension uses the new incarnation of LiveConnect (handled by Java 1.6v12+ instead of Mozilla-specific code) to connect with the Java-based Saxon-B library, and adds support for having XSLT performed automatically when visiting a page with the appropriate XSLT processing instruction (and which isn't processed by Firefox's own XSLT 1.0 processor).
For developers
Saxon-CE
A JavaScript API is provided for initiating an XSLT 2.0 transform from a web page. Error and diagnostics output from Saxon-CE can be reviewed in the Firefox developer console or in Firebug.
Saxon-B
The extension demonstrates how one can use LiveConnect code to communicate with the Saxon-B library, but one might find the JavaScript code module approach used inside the extension XqUSEme as a more reusable approach.
The code does not currently work on the Mac (except for server edition supporting Java 1.6) due to its lagging Java support (and thus LiveConnect support).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论