This PHP extension provides a processor independent API to XSLT transformations. Currently this extension only supports the Sablotron library from the Ginger Alliance. Support is planned for other libraries, such as the Xalan library or the libxslt library.
XSLT (Extensible Stylesheet Language (XSL) Transformations) is a language for transforming XML documents into other XML documents. It is a standard defined by The World Wide Web Consortium (W3C). Information about XSLT and related technologies can be found at » http://www.w3.org/TR/xslt.
This extension is different than the sablotron extension distributed with versions of PHP prior to PHP 4.1.0, currently only the new XSLT extension in PHP 4.1.0 is supported. If you need support for the old extension, please ask your questions on the PHP mailing lists.
This extension has been moved to the » PECL repository and is no longer bundled with PHP as of PHP 5.0.0.
If you need xslt support with PHP 5 you can use the XSL extension.
This extension uses Sablotron and expat, which can both be found at » http://www.gingerall.org/sablotron.html. Binaries are provided as well as source.
On Unix, run configure with the
options. The Sablotron
library should be installed somewhere your compiler can find it.
Make sure you have the same libraries linked to the
Sablotron library as those, which are linked
with PHP. The configuration options:
are there to help you specify them. When asking for support, always
mention these directives, and whether there are other versions of those
libraries installed on your system somewhere. Naturally, provide all the
Be sure your Sablot library is linked to
otherwise your configure will fail, or PHP will fail to run or load.
support, you must specify the option:
In order for this extension to work, there are
DLL files that must be available to the Windows
PATH. See the FAQ titled "How do I add my PHP directory to the PATH
on Windows" for information on how to do this. Although copying DLL
files from the PHP folder into the Windows system directory also works
(because the system directory is by default in the systems
PATH), it is not recommended.
This extension requires the following files to be in the
For PHP <= 4.2.0, the file
This extension defines a XSLT processor resource returned by xslt_create().
The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.
Tell Sablotron to parse public entities. By default this has been turned off.
Do not add the meta tag "Content-Type" for HTML output. The default is set during compilation of Sablotron.
Table of Contents