Got a bit further on windows. Managed
to get around the error : 'Invalid Library (maybe not a PHP
I had to removed a predirective which is for linux only. This was
around the code:
Library still not loading properly though when I run phpinfo().
Currently investigating it.
On 09/12/2013 09:52, Dr O'Neil Delpratt wrote:
Just to inform the mailing list on the progress on the Saxon/C -
PHP extension for Windows: see email correspondance below.
BTW. I am currently investigating PHP library load error
---------- Forwarded message
From: Lauro Campos<firstname.lastname@example.org>
Date: Sat, Dec 7, 2013 at 12:25 AM
Subject: RE: [saxon] Saxon/C question UPDATE
To: O'Neil Delpratt <email@example.com>
So I tried adding the
extension to php, at first, I got an error saying
"php_saxon.dll was not a valid win 32...", I
remembered I had wamp 64 bit, so I removed that
installation and installed 32 bit, and now I get an
"PHP Startup: Invalid
Library (maybe not a PHP library) 'php_saxon.dll'"
And I'm positive I have 32
bit Saxon/C since it is installed under Program
Files(x86), when I installed 64 bit it installed under
regular Program Files directory.
I tried copying libsaxon.dll everywhere in the php
folder with no success.
I went and googled the error and found this on
I'll give it a try in a couple of hours, by
saxon.dll I guess you mean libsaxon.dll,
should I use 32 bits or 64 bits? And do I need
it only installed? Or should I move it to some
specific folder? I'm gonna try it using wamp
also, I hoping for the best.
I have managed to build the php library
using Visual studio 2008 from the source
files in the download file, but I having
trouble loading the extension on my PHP
server. I am using wamp. I am attaching
the php_saxon.dll file as zip to see if
you have better joy than me. Please let me
know if it works for you.
You still need the saxon.dll file, which
you already have I believe.
You also need to add the following line in
the php.ini file:
You need to install the php library i nthe
usual place of your PHP extension
On 05/12/2013 23:50, Lauro Campos wrote:
Thanks a lot for quick response
O'Neil, I'll be waiting for the guide,
and I'll be glad to provide feedback
as soon as I can provide some more.
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.
On 05/12/13 01:17, Lauro Campos
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:
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:
To build the php extension follow the steps below:
Uncomment the following code in the file xsltProcessor: #include "php_saxon.h"
Run the commands:
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