<HTML ><HEAD ><TITLE >XSLT functions</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="PHP Manual" HREF="index.html"><LINK REL="UP" TITLE="Function Reference" HREF="funcref.html"><LINK REL="PREVIOUS" TITLE="xmlrpc_set_type" HREF="function.xmlrpc-set-type.html"><LINK REL="NEXT" TITLE="xslt_create" HREF="function.xslt-create.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="reference" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.xmlrpc-set-type.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.xslt-create.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="reference" ><A NAME="ref.xslt" ></A ><DIV CLASS="TITLEPAGE" ><H1 CLASS="title" >CIX. XSLT functions</H1 ><DIV CLASS="PARTINTRO" ><A NAME="AEN97074" ></A ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="xslt.intro" ></A >Introduction</H1 ><P > 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. </P ><P > 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 <A HREF="http://www.w3.org/TR/xslt" TARGET="_top" >http://www.w3.org/TR/xslt</A >. </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Note: </B > 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. </P ></BLOCKQUOTE ></DIV ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="xslt.requirements" ></A >Requirements</H1 ><P > This extension uses <SPAN CLASS="productname" >Sablotron</SPAN > and <SPAN CLASS="productname" >expat</SPAN >, which can both be found at <A HREF="http://www.gingerall.com/" TARGET="_top" >http://www.gingerall.com/</A >. Binaries are provided as well as source. </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="xslt.installation" ></A >Installation</H1 ><P > On UNIX, run <B CLASS="command" >configure</B > with the <TT CLASS="option" >--enable-xslt</TT > <TT CLASS="option" >--with-xslt-sablot</TT > options. The <SPAN CLASS="productname" >Sablotron</SPAN > library should be installed somewhere your compiler can find it. </P ><P > Make sure you have the same libraries linked to the <SPAN CLASS="productname" >Sablotron</SPAN > library as those, which are linked with PHP. The configuration options: <TT CLASS="option" >--with-expat-dir=DIR</TT > <TT CLASS="option" >--with-iconv-dir=DIR</TT > 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. </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >JavaScript E-XSLT support: </B > If you compiled <SPAN CLASS="productname" >Sablotron</SPAN > with JavaScript support, you must specify the option: <TT CLASS="option" >--with-sablot-js=DIR</TT >. </P ></BLOCKQUOTE ></DIV ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Note to Win32 Users: </B > In order to enable this module on a Windows environment, you must copy <SPAN CLASS="emphasis" ><I CLASS="emphasis" >sablot.dll</I ></SPAN > from the DLL folder of the PHP/Win32 binary package to the SYSTEM32 folder of your windows machine. (Ex: C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32) </P ></BLOCKQUOTE ></DIV ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="xslt.configuration" ></A >Runtime Configuration</H1 ><P >This extension has no configuration directives defined in <TT CLASS="filename" >php.ini</TT >.</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="xslt.resources" ></A >Resource Types</H1 ><P >This extension has no resource types defined.</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="xslt.constants" ></A >Predefined Constants</H1 ><P > 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. </P ><P ></P ><DIV CLASS="variablelist" ><DL ><DT ><TT CLASS="constant" ><B >XSLT_OPT_SILENT</B ></TT > (<A HREF="language.types.integer.html" >integer</A >)</DT ><DD ><P > Drop all logging and error reporting. This is a generic option for all backends that may be added in the future. </P ></DD ><DT ><TT CLASS="constant" ><B >XSLT_SABOPT_PARSE_PUBLIC_ENTITIES</B ></TT > (<A HREF="language.types.integer.html" >integer</A >)</DT ><DD ><P > Tell <SPAN CLASS="productname" >Sablotron</SPAN > to parse public entities. By default this has been turned off. </P ></DD ><DT ><TT CLASS="constant" ><B >XSLT_SABOPT_DISABLE_ADDING_META</B ></TT > (<A HREF="language.types.integer.html" >integer</A >)</DT ><DD ><P > Do not add the meta tag "Content-Type" for HTML output. The default is set during compilation of <SPAN CLASS="productname" >Sablotron</SPAN >. </P ></DD ><DT ><TT CLASS="constant" ><B >XSLT_SABOPT_DISABLE_STRIPPING</B ></TT > (<A HREF="language.types.integer.html" >integer</A >)</DT ><DD ><P > Suppress the whitespace stripping (on data files only). </P ></DD ><DT ><TT CLASS="constant" ><B >XSLT_SABOPT_IGNORE_DOC_NOT_FOUND</B ></TT > (<A HREF="language.types.integer.html" >integer</A >)</DT ><DD ><P > Consider unresolved documents (the document() function) non-lethal. </P ></DD ><DT ><TT CLASS="constant" ><B >XSLT_ERR_UNSUPPORTED_SCHEME</B ></TT > (<A HREF="language.types.integer.html" >integer</A >)</DT ><DD ><P > Error return code, for <A HREF="function.xslt-set-scheme-handlers.html" >scheme handlers</A >. </P ></DD ></DL ></DIV ></DIV ></DIV ><DIV CLASS="TOC" ><DL ><DT ><B >Table of Contents</B ></DT ><DT ><A HREF="function.xslt-create.html" >xslt_create</A > -- Create a new XSLT processor</DT ><DT ><A HREF="function.xslt-errno.html" >xslt_errno</A > -- Return a error number</DT ><DT ><A HREF="function.xslt-error.html" >xslt_error</A > -- Return a error string</DT ><DT ><A HREF="function.xslt-free.html" >xslt_free</A > -- Free XSLT processor</DT ><DT ><A HREF="function.xslt-process.html" >xslt_process</A > -- Perform an XSLT transformation</DT ><DT ><A HREF="function.xslt-set-base.html" >xslt_set_base</A > -- Set the base URI for all XSLT transformations</DT ><DT ><A HREF="function.xslt-set-encoding.html" >xslt_set_encoding</A > -- Set the encoding for the parsing of XML documents</DT ><DT ><A HREF="function.xslt-set-error-handler.html" >xslt_set_error_handler</A > -- Set an error handler for a XSLT processor</DT ><DT ><A HREF="function.xslt-set-log.html" >xslt_set_log</A > -- Set the log file to write log messages to</DT ><DT ><A HREF="function.xslt-set-sax-handler.html" >xslt_set_sax_handler</A > -- Set SAX handlers for a XSLT processor</DT ><DT ><A HREF="function.xslt-set-sax-handlers.html" >xslt_set_sax_handlers</A > -- Set the SAX handlers to be called when the XML document gets processed </DT ><DT ><A HREF="function.xslt-set-scheme-handler.html" >xslt_set_scheme_handler</A > -- Set Scheme handlers for a XSLT processor</DT ><DT ><A HREF="function.xslt-set-scheme-handlers.html" >xslt_set_scheme_handlers</A > -- Set the scheme handlers for the XSLT processor </DT ></DL ></DIV ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.xmlrpc-set-type.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.xslt-create.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >xmlrpc_set_type</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="funcref.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >xslt_create</TD ></TR ></TABLE ></DIV ></BODY ></HTML >