Page 1 of 1

how enable xslt in xampp linux???

PostPosted: 01. May 2009 15:51
by raman36127
how enable xslt in xampp linux..plzzzzzzzzzzz help me....

Re: how enable xslt in xampp linux???

PostPosted: 01. May 2009 15:55
by raman36127
Hi I follow this topic but ..... not get any sucess....

XSLT Module Install for Linux
XSLT support in PHP relies on the Sablotron [12] XSLT processor, which in turn relies on the expat [13] XML parser, so not only do you have to install both of those packages, but you need to install them in the right order to satisfy the dependencies.

First, download the latest version of expat (1.95.2 as of this writing). Steer clear of the .RPM packages. Though they may be convenient, they do not include the libraries required for Sablotron to use expat. Download the source archive (expat-1.95.2.tar.gz) and then extract it in a convenient directory:

tar xfz expat-1.95.2.tar.gz

This will create a directory named expat-1.95.2 that contains the files required to compile and install expat. Go into that directory and type the following commands to configure, compile, and install expat with the default options. You'll likely have to log in as the root user to perform the make install, which installs new system libraries to non-public directories. Consult the expat documentation if you want to modify the default options.

make install

With expat compiled and installed, you're now ready to do the same for Sablotron. Download the latest version (0.71 as of this writing). Once again, you want the source download (Sablot-0.71.tar.gz), not the RPMs, though you might have a shot if you installed both the sablotron and sablotron-devel RPMs (try at your own risk!). Extract the source archive as you did for expat:

tar xfz Sablot-0.71.tar.gz

Go into the directory thus produced (Sablot-0.71) and run the following commands to configure, compile, and install Sablotron. The configuration process should detect your expat installation automatically. Once again, you should log in as root to perform the make install.

make install

Finally, you're ready to compile and install PHP with XSLT support. Presumably you already have PHP installed on your server, but as with most module installations, you'll have to download the PHP source files and recompile PHP to add XSLT support. This process is fully documented in Build your own Database Driven Website using PHP & MySQL - Part 1: Installation [14]; all that changes is the set of switches you need to use when configuring PHP prior to compilation:

./configure \
--prefix=/usr/local/php \
--with-config-file-path=/usr/local/php \
--with-apxs=/usr/sbin/apxs \
--enable-track-vars \
--enable-magic-quotes \
--enable-debugger \
--enable-xslt \

The lines in bold add XML and XSLT support to your PHP configuration. From there, PHP installation should be completed as usual by performing a make and then a make install. Once you restart your Web server with the newly-compiled PHP module installed, PHP should be fully equipped to process XML data with XSLT. To make sure, you can create a simple PHP script that just calls phpinfo(), then view the results on your server. The page produced should contain the following section:

Now let's take the XSLT functions for a test drive
so on................................

Kindly help me.....