简体   繁体   English

使用XSLT 2.0和PHP的最佳方法是什么?

[英]What is the best way to use XSLT 2.0 with PHP?

This is my second question on the site, like always, I've spent several hours reading a lot of related questions, the 2 most relevant are: 这是我在网站上的第二个问题,就像往常一样,我花了几个小时阅读了很多相关的问题,最相关的两个问题是:

And

I focused mainly on the second option since php already have a XSLTProcessor library, but sadly it only supports XSLT 1.0 and I'm looking 2.0 support, so it seemed to be the right option, but after installing PEAR and trying to install XML_XSLT2Processor, and reading many articles( 1 , 2 , 3 , the ones I currently have open about the topic) and AltovaXML gone commercial, and PEAR being so buggy, I decided to go with the first option. 我主要关注第二个选项,因为php已经有了一个XSLTProcessor库,但遗憾的是它只支持XSLT 1.0而且我看起来支持2.0,所以它似乎是正确的选择,但是在安装PEAR并尝试安装XML_XSLT2Processor之后,阅读多篇( 123 ,那些我目前拥有的话题开放)和AltovaXML了商业和PEAR如此越野车,我决定去与第一个选项。

But I don't really know Java, yet I'm gonna give it a try, but before starting with this I decided to ask first (plus the posts are a little outdated). 但我真的不懂Java,但我会试一试,但在开始之前我决定先问(加上帖子有点过时了)。

Isn't there any other better way to manage XSLT 2.0 with PHP? 有没有其他更好的方法来管理PHP的XSLT 2.0?

The question is timely because last week we launched Saxon/C, a port of Saxon compiled to Intel machine code with APIs for C, C++, and PHP. 问题是及时的,因为上周我们推出了Saxon / C,这是Saxon的一个端口,编译为英特尔机器代码,包含用于C,C ++和PHP的API。 It's early days yet (an Alpha 0.1 release), but if you don't mind being at the bleeding edge, you might give it a try. 这是早期的(Alpha 0.1发布),但是如果你不介意处于最前沿,你可以尝试一下。 And of course we welcome your feedback. 当然,我们欢迎您的反馈。 Details at http://www.saxonica.com/saxon-c/index.xml 有关详细信息, 请访问http://www.saxonica.com/saxon-c/index.xml

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM