XSLT functionsXSLT
&reftitle.intro;
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 &url.xslt;.
This extension is different than the sablotron extension distributed with
versions of PHP prior to PHP 4.1, currently only the new XSLT extension in
PHP 4.1 is supported. If you need support for the old extension, please ask
your questions on the PHP mailing lists.
&reftitle.required;
This extension uses Sablotron
and expat, which can both be
found at &url.sablotron;. Binaries
are provided as well as source.
&reftitle.install;
On UNIX, run configure with the
--enable-xslt
--with-xslt-sablot
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:
--with-expat-dir
--with-iconv-dir
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
version numbers.
JavaScript E-XSLT support
If you compiled Sablotron with JavaScript
support, you must specify the option:
--with-sablot-js.
&reftitle.runtime;
&no.config;
&reftitle.resources;
&no.resource;
&reference.xslt.constants;
&reference.xslt.functions;