Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XSLT 2.0 PHP support. When?

Tags:

php

xslt

saxon

What are the chances to see XSLT 2.0 processors like saxon for php in the nearest future?

like image 329
Dziamid Avatar asked Nov 27 '09 09:11

Dziamid


People also ask

Is XSLT 2.0 backward compatibility?

The XSLT 2.0 engine is backwards compatible. The only time the backwards compatibility of the XSLT 2.0 engine comes into effect is when using the XSLT 2.0 engine to process an XSLT 1.0 stylesheet.

What is XSLT format?

XSLT (Extensible Stylesheet Language Transformations) is a language originally designed for transforming XML documents into other XML documents, or other formats such as HTML for web pages, plain text or XSL Formatting Objects, which may subsequently be converted to other formats, such as PDF, PostScript and PNG.


3 Answers

This isn't entirely true.

If you are running PHP on the Windows platform, then there is a relatively easy to configure extension to the AltovaXML XSLT 2.0 processor... http://sourceforge.net/projects/xslt2processor/

If you are running PHP on Linux, then you will need to install a PHP/Java Bridge. This involves running a Java servlet contained like Apache/Tomcat, and is pretty involved. There is also some relatively complex hybrid java/php code necessary to make this work. If you are interested, I can post more details.

like image 135
JR. Avatar answered Sep 20 '22 18:09

JR.


In the nearest future? None.

PHP5 relies exclusively on LibXSLT for XSLT processing (Sablotron is out), and there is no plan to support XSLT 2.0 in this library.

like image 43
Erlock Avatar answered Sep 20 '22 18:09

Erlock


Finally, there is a positive answer to this question.

Just today, Dr. Michael Kay announced Saxon/C.

See this for more information: https://stackoverflow.com/a/20275114/36305

like image 34
Dimitre Novatchev Avatar answered Sep 21 '22 18:09

Dimitre Novatchev