Hi Lauro,

Thanks for getting in touch with use in regards to Saxon/C. Your feedback is appreciated.

As assumed the installation steps are for Linux. The windows executables does include the Saxon/C DLLs, but I have not tried building the PHP extension on the Windows platform or provided steps as yet. It is on my to-do list, which I will now make it top priority. I should be able to provide a guide for Windows, hopefully by tomorrow.

Kind regards,


On 05/12/13 01:17, Lauro Campos wrote:

I recently asked a question on stack over flow, What is the best way to use XSLT 2.0 with PHP? , and got answered by Michael Kay and suggested using Saxon/C  eventhough it is on alpha release, so I checked out the site, and it seems that this is exactly what I'm looking for, being able to do this: 

        $saxon_version = $xslt->version();
        $xslt = new XsltProcessor();
        echo $xslt->xsltApplyStylesheet("cat.xml", "test.xsl");

Using XSLT 2.0 seems like a dream, but there are no instructions on how to use it on Windows, I download the installers, both 32 and 64 bits versions, installed them separatedly, checked them out and the instructions on these are the same that are on the site and they are for Linux apparently. 

What I am asking here is for directions on how to use this on PHP on windows, I tried following the instructions to install the extension:

PHP extension:

To build the php extension follow the steps below:

  • Uncomment the following code in the file xsltProcessor: #include "php_saxon.h"

Run the commands:

  • phpize
  • ./configure --enable-saxon
  • make
  • sudo make install

Update the php.ini file (if using Ubuntu it is usually in the location '/etc/php5/apache2/') to contain the php extension. Insert the following in the Dynamic Extensions section: extension=saxon.so

Without success.
Any help would be greatly appreciated.

Best Regards,
Lauro Campos

Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!

saxon-help mailing list archived at http://saxon.markmail.org/

O'Neil Delpratt
Software Developer, Saxonica Limited
Email: oneil@saxonica.com
Tel: +44 118 946 5894
Web: http://www.saxonica.com
Saxonica Community Site: http://dev.saxonica.com Saxonica Bug tracking System: https://saxonica.plan.io/