cvs: phpdoc /nl/functions mcrypt.xml outcontrol.xml recode.xml strings.xml xslt.xml
| From: | Derick Rethans | Date: | Sun, 12 Nov 2000 23:03:58 +0000 |
| Subject: | cvs: phpdoc /nl/functions mcrypt.xml outcontrol.xml recode.xml strings.xml xslt.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969332874@lists.php.net to get a copy of this message | ||
derick Sun Nov 12 15:03:58 2000 EDT
Added files:
/phpdoc/nl/functions xslt.xml
Modified files:
/phpdoc/nl/functions mcrypt.xml outcontrol.xml recode.xml
strings.xml
Log:
- Updated from English tree
Index: phpdoc/nl/functions/mcrypt.xml diff -u phpdoc/nl/functions/mcrypt.xml:1.2 phpdoc/nl/functions/mcrypt.xml:1.3 --- phpdoc/nl/functions/mcrypt.xml:1.2 Wed Oct 18 15:13:07 2000 +++ phpdoc/nl/functions/mcrypt.xml Sun Nov 12 15:03:58 2000 @@ -876,7 +876,7 @@ $modes = mcrypt_list_modes (); foreach ($modes as $mode) { - echo $mode."/n"; + echo "$mode </br>"; } ?> </programlisting> Index: phpdoc/nl/functions/outcontrol.xml diff -u phpdoc/nl/functions/outcontrol.xml:1.1 phpdoc/nl/functions/outcontrol.xml:1.2 --- phpdoc/nl/functions/outcontrol.xml:1.1 Tue Oct 10 15:07:53 2000 +++ phpdoc/nl/functions/outcontrol.xml Sun Nov 12 15:03:58 2000 @@ -62,6 +62,25 @@ using (CGI, a web server, etc.) This effectively tries to push all the output so far to the user's browser. </simpara> + <note> + <para> + <function>flush</function> has no effect on the buffering + scheme of your webserver or the browser on the client + side. + </para> + <para> + Several servers, especially on Win32, will still buffer + the output from your script until it terminates before + transmitting the results to the browser. + </para> + <para> + Even the browser may buffer its input before displaying it. + Netscape, for example, buffers text until it receives an + end-of-line or the beginning of a tag, and it won't render + tables until the </table> tag of the outermost table is + seen. + </para> + </note> </refsect1> </refentry> @@ -75,7 +94,11 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>ob_start</function></funcdef> - <void/> + <paramdef>string + <parameter> + <optional>output_callback</optional> + </parameter> + </paramdef> </funcprototype> </funcsynopsis> <para> @@ -91,6 +114,48 @@ <function>ob_end_clean</function> will silently discard the buffer contents. </para> + <para> + An optional output_callback function may be specified. This + function takes a string as a parameter and returns a string. + The function will be called at <function>ob_end_flush</function> + time and will receive the contents of the output buffer as its + parameter. It must return a new output buffer as a result, + which is what will be printed. + </para> + <para> + Output buffers are stackable, that is, you may call + <function>ob_start</function> while another + <function>ob_start</function> is active. Just make + sure that you call <function>ob_end_flush()</function> + the appropriate number of times. If multiple output callback + functions are active, output is being filtered sequentially + through each of them in nesting order. + </para> + <example> + <title>Callback function example</title> + <programlisting role="php"> +<?php +function c($str) { + // Druu Chunusun mut dum Kuntrubuß... + return nl2br(ereg_replace("[aeiou]", "u", $str)); +} + +function d($str) { + return strip_tags($str); +} +?> + +<?php ob_start("c"); ?> +Drei Chinesen mit dem Kontrabaß... +<?php ob_start("d"); ?> +<h1>..saßen auf der Straße und erzählten sich was...</h1> +<?php ob_end_flush(); ?> +... da kam die Polizei, ja was ist denn das? +<?php ob_end_flush(); ?> + +?> + </programlisting> + </example> <para> See also <function>ob_get_contents</function>, <function>ob_end_flush</function>, Index: phpdoc/nl/functions/recode.xml diff -u phpdoc/nl/functions/recode.xml:1.1 phpdoc/nl/functions/recode.xml:1.2 --- phpdoc/nl/functions/recode.xml:1.1 Tue Oct 10 15:07:53 2000 +++ phpdoc/nl/functions/recode.xml Sun Nov 12 15:03:58 2000 @@ -36,13 +36,19 @@ </funcsynopsis> <para> Recode the string <parameter>string</parameter> according to - the recode request <parameter>request</parameter>. Returns - FALSE, if unable to comply, TRUE otherwise. + the recode request <parameter>request</parameter>. Returns the + recoded string or FALSE, if unable to perform the recode request. </para> <para> A simple recode request may be "lat1..iso646-de". See also the GNU Recode documentation of your installation for detailed instructions about recode requests. + <example> + <title>Basic <function>recode_string</function> example:</title> + <programlisting role="php"> +print recode_string ("us..flat", "The following character has a diacritical mark: &aacute;"); + </programlisting> + </example> </para> </refsect1> </refentry> @@ -81,21 +87,32 @@ <title>Description</title> <funcsynopsis> <funcprototype> - <funcdef>bool <function>recode_file</function></funcdef> - <paramdef>int <parameter>input</parameter></paramdef> - <paramdef>int <parameter>output</parameter></paramdef> + <funcdef>boolean <function>recode_file</function></funcdef> + <paramdef>string <parameter>request</parameter></paramdef> + <paramdef>resource <parameter>input</parameter></paramdef> + <paramdef>resource <parameter>output</parameter></paramdef> </funcprototype> </funcsynopsis> <para> Recode the file referenced by file handle <parameter>input</parameter> into the file referenced by file handle <parameter>output</parameter> according to the recode - request. Returns FALSE, if unable to comply, TRUE - otherwise. + <parameter>request</parameter>. Returns FALSE, if unable to + comply, TRUE otherwise. </para> <para> This function does not currently process filehandles referencing remote files (URLs). Both filehandles must refer to local files. + </para> + <para> + <example> + <title>Basic <function>recode_file</function> example</title> + <programlisting role="php"> +$input = fopen ('input.txt', 'r'); +$output = fopen ('output.txt', 'w'); +recode_file ("us..flat", $input, $output); + </programlisting> + </example> </para> </refsect1> </refentry> Index: phpdoc/nl/functions/strings.xml diff -u phpdoc/nl/functions/strings.xml:1.1 phpdoc/nl/functions/strings.xml:1.2 --- phpdoc/nl/functions/strings.xml:1.1 Tue Oct 10 15:07:53 2000 +++ phpdoc/nl/functions/strings.xml Sun Nov 12 15:03:58 2000 @@ -2425,6 +2425,28 @@ </para> <para> If <parameter>needle</parameter> is not found, returns false. + <note> + <para> + It is easy to mistake the return values for "character found at + position 0" and "character not found". Here's how to detect + the difference: + <informalexample> + <programlisting role="php"> +// in PHP 4.0b3 and newer: +$pos = strrpos ($mystring, "b"); +if ($pos === false) { // note: three equal signs + // not found... +} + +// in versions older than 4.0b3: +$pos = strrpos ($mystring, "b"); +if (is_string ($pos) && !$pos) { + // not found... +} + </programlisting> + </informalexample> + </para> + </note> </para> <para> If <parameter>needle</parameter> is not a string, it is converted @@ -3050,6 +3072,14 @@ // Lamb And She Loved It So. </programlisting> </example> + <note> + <simpara> + The definition of a word is any string of characters + that is immediately after a whitespace (These are: + space, form-feed, newline, carriage return, horizontal tab, + and vertical tab). + </simpara> + </note> </para> <para> See also <function>strtoupper</function>, Index: phpdoc/nl/functions/xslt.xml +++ phpdoc/nl/functions/xslt.xml <reference id="ref.xml"> <title>XSLT functions</title> <titleabbrev>XSLT</titleabbrev> <partintro> <sect1 id="xslt.partintro"> <title>Introduction</title> <sect2 id="xslt.intro"> <title>About XSLT and Sablotron</title> <para> 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 <ulink url="&url.xslt;">&url.xslt;</ulink>. </para> </sect2> <sect2 id="xslt.install"> <title>Installation</title> <para> This extension uses <productname>Sabloton</productname> and <productname>expat</productname>, which can both be found at <ulink url="&url.sablotron;">&url.sablotron;</ulink>. Binaries are provided as well as source. <para> On UNIX, run <command>configure</command> with the <option role="configure">--with-sablot</option> and <option role="configure">--enable-sablot-errors-descriptive</option> options. The <productname>Sablotron</productname> library should be installed somewhere your compiler can find it. </para> </sect2> <sect2 id="xslt.about"> <title>About This Extension</title> <para> This PHP extension implements support <productname>Sablotron</productname> from Ginger Alliance in PHP. This toolkit lets you transform XML documents into other documents, including new XML documents, but also into HTML or other target formats. It basically provides a standardized and portable template mechanism, separating content and design of a website. </para> <refentry id="function.xslt-closelog"> <refnamediv> <refname>xslt_closelog</refname> <refpurpose>Clear the logfile for a given instance of Sablotron</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>bool <function>xslt_closelog</function></funcdef> <paramdef>resource <parameter>xh</parameter></paramdef> </funcprototype> </funcsynopsis> <para> <variablelist> <varlistentry> <term><parameter>xh</parameter></term> <listitem> <simpara> A reference to the XSLT parser. </simpara> </listitem> </varlistentry> </variablelist></para> <para> This function returns false if <parameter>parser</parameter> does not refer to a valid parser, or if the closing of the logfile fails. Otherwise it returns true. </para> </refsect1> </refentry> <refentry id="function.xslt-create"> <refnamediv> <refname>xslt_create</refname> <refpurpose>Create a new XSL processor.</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>resource <function>xslt_create</function></funcdef> <void/> </funcprototype> </funcsynopsis> <para> This function returns a handle for a new XSL processor. This handle is needed in all subsequent calls to XSL functions. </para> </refsect1> </refentry> <refentry id="function.xslt-errno"> <refnamediv> <refname>xslt_errno</refname> <refpurpose>Return the current error number</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>int <function>xslt_errno</function></funcdef> <paramdef> <parameter><optional>int xh</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> <para> Return the current error number of the given XSL processor. If no handle is given, the last error number that occured anywhere is returned. </para> </refsect1> </refentry> <refentry id="function.xslt-error"> <refnamediv> <refname>xslt_error</refname> <refpurpose>Return the current error string</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>mixed <function>xslt_error</function></funcdef> <paramdef> <parameter><optional>int xh</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> <para> Return the current error string of the given XSL processor. If no handle is given, the last error string that occured anywhere is returned. </para> </refsect1> </refentry> <refentry id="function.xslt-fetch-result"> <refnamediv> <refname>xslt_fetch_result</refname> <refpurpose>Fetch a (named) result buffer</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>string <function>xslt_fetch_result</function></funcdef> <paramdef> <parameter>int xh</parameter> <parameter><optional>string result_name</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> <para> Fetch a result buffer from the XSLT processor identified by the given handle. If no result name is given, the buffer named "/_result" is fetched. </para> </refsect1> </refentry> <refentry id="function.xslt-free"> <refnamediv> <refname>xslt_free</refname> <refpurpose>Free XSLT processor</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>void <function>xslt_free</function></funcdef> <paramdef> <parameter>resource xh</parameter> </paramdef> </funcprototype> </funcsynopsis> <para> Free the XSLT processor identified by the given handle. </para> </refsect1> </refentry> <refentry id="function.xslt-openlog"> <refnamediv> <refname>xslt_openlog</refname> <refpurpose>Set a logfile for XSLT processor messages</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>bool <function>xslt_openlog</function></funcdef> <paramdef> <parameter>resource xh</parameter> <parameter>string logfile</parameter> <parameter><optional>int loglevel</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> <para> Set a logfile for the XSLT processor to place all of its error messages. </para> </refsect1> </refentry> <refentry id="function.xslt-output-begintransform"> <refnamediv> <refname>xslt_output_begintransform</refname> <refpurpose>unknown</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>unknown <function>xslt_output_begintransform</function></funcdef> <paramdef> <parameter>unknown</parameter> </paramdef> </funcprototype> </funcsynopsis> <para> This function lacks a prototype definition. </para> </refsect1> </refentry> <refentry id="function.xslt-output-endtransform"> <refnamediv> <refname>xslt_output_endtransform</refname> <refpurpose>unknown</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>unknown <function>xslt_output_endtransform</function></funcdef> <paramdef> <parameter>unknown</parameter> </paramdef> </funcprototype> </funcsynopsis> <para> This function lacks a prototype definition. </para> </refsect1> </refentry> <refentry id="function.xslt-process"> <refnamediv> <refname>xslt_output_process</refname> <refpurpose>unknown</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>unknown <function>xslt_process</function></funcdef> <paramdef> <parameter>unknown</parameter> </paramdef> </funcprototype> </funcsynopsis> <para> This function lacks a prototype definition. </para> </refsect1> </refentry> <refentry id="function.xslt-run"> <refnamediv> <refname>xslt_run</refname> <refpurpose>Apply a XSLT stylesheet to a file.</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>bool <function>xslt_run</function></funcdef> <paramdef> <parameter>resource xh</parameter> <parameter>string xslt_file</parameter> <parameter>string xml_data_file</parameter> <parameter><optional>string result</optional></parameter> <parameter><optional>array xslt_params</optional></parameter> <parameter><optional>array xslt_args</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> <para> Process the xml_data_file by applying the xslt_file stylesheet to it. The stylesheet has access to xslt_params and the processor is started with xslt_args. The result of the XSLT transformation is placed in the named buffer (default is "/_result"). </para> </refsect1> </refentry> <refentry id="function.xslt-set-sax-handler"> <refnamediv> <refname>xslt_set_sax_handler</refname> <refpurpose>Set SAX handlers for a XSLT processor</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>bool <function>xslt_set_sax_handler</function></funcdef> <paramdef> <parameter>resource xh</parameter> <parameter>array handlers</parameter> </paramdef> </funcprototype> </funcsynopsis> <para> Set SAX handlers on the ressource handle given by xh. </para> </refsect1> </refentry> <refentry id="function.xslt-transform"> <refnamediv> <refname>xslt_transform</refname> <refpurpose>unknown</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>unknown <function>xslt_transform</function></funcdef> <paramdef> <parameter>unknown</parameter> </paramdef> </funcprototype> </funcsynopsis> <para> This function lacks a prototype definition. </para> </refsect1> </refentry> </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: -->
Index: phpdoc/nl/functions/mcrypt.xml diff -u phpdoc/nl/functions/mcrypt.xml:1.2 phpdoc/nl/functions/mcrypt.xml:1.3 --- phpdoc/nl/functions/mcrypt.xml:1.2 Wed Oct 18 15:13:07 2000 +++ phpdoc/nl/functions/mcrypt.xml Sun Nov 12 15:03:58 2000 @@ -876,7 +876,7 @@ $modes = mcrypt_list_modes (); foreach ($modes as $mode) { - echo $mode."/n"; + echo "$mode </br>"; } ?> </programlisting> Index: phpdoc/nl/functions/outcontrol.xml diff -u phpdoc/nl/functions/outcontrol.xml:1.1 phpdoc/nl/functions/outcontrol.xml:1.2 --- phpdoc/nl/functions/outcontrol.xml:1.1 Tue Oct 10 15:07:53 2000 +++ phpdoc/nl/functions/outcontrol.xml Sun Nov 12 15:03:58 2000 @@ -62,6 +62,25 @@ using (CGI, a web server, etc.) This effectively tries to push all the output so far to the user's browser. </simpara> + <note> + <para> + <function>flush</function> has no effect on the buffering + scheme of your webserver or the browser on the client + side. + </para> + <para> + Several servers, especially on Win32, will still buffer + the output from your script until it terminates before + transmitting the results to the browser. + </para> + <para> + Even the browser may buffer its input before displaying it. + Netscape, for example, buffers text until it receives an + end-of-line or the beginning of a tag, and it won't render + tables until the </table> tag of the outermost table is + seen. + </para> + </note> </refsect1> </refentry> @@ -75,7 +94,11 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>ob_start</function></funcdef> - <void/> + <paramdef>string + <parameter> + <optional>output_callback</optional> + </parameter> + </paramdef> </funcprototype> </funcsynopsis> <para> @@ -91,6 +114,48 @@ <function>ob_end_clean</function> will silently discard the buffer contents. </para> + <para> + An optional output_callback function may be specified. This + function takes a string as a parameter and returns a string. + The function will be called at <function>ob_end_flush</function> + time and will receive the contents of the output buffer as its + parameter. It must return a new output buffer as a result, + which is what will be printed. + </para> + <para> + Output buffers are stackable, that is, you may call + <function>ob_start</function> while another + <function>ob_start</function> is active. Just make + sure that you call <function>ob_end_flush()</function> + the appropriate number of times. If multiple output callback + functions are active, output is being filtered sequentially + through each of them in nesting order. + </para> + <example> + <title>Callback function example</title> + <programlisting role="php"> +<?php +function c($str) { + // Druu Chunusun mut dum Kuntrubuß... + return nl2br(ereg_replace("[aeiou]", "u", $str)); +} + +function d($str) { + return strip_tags($str); +} +?> + +<?php ob_start("c"); ?> +Drei Chinesen mit dem Kontrabaß... +<?php ob_start("d"); ?> +<h1>..saßen auf der Straße und erzählten sich was...</h1> +<?php ob_end_flush(); ?> +... da kam die Polizei, ja was ist denn das? +<?php ob_end_flush(); ?> + +?> + </programlisting> + </example> <para> See also <function>ob_get_contents</function>, <function>ob_end_flush</function>, Index: phpdoc/nl/functions/recode.xml diff -u phpdoc/nl/functions/recode.xml:1.1 phpdoc/nl/functions/recode.xml:1.2 --- phpdoc/nl/functions/recode.xml:1.1 Tue Oct 10 15:07:53 2000 +++ phpdoc/nl/functions/recode.xml Sun Nov 12 15:03:58 2000 @@ -36,13 +36,19 @@ </funcsynopsis> <para> Recode the string <parameter>string</parameter> according to - the recode request <parameter>request</parameter>. Returns - FALSE, if unable to comply, TRUE otherwise. + the recode request <parameter>request</parameter>. Returns the + recoded string or FALSE, if unable to perform the recode request. </para> <para> A simple recode request may be "lat1..iso646-de". See also the GNU Recode documentation of your installation for detailed instructions about recode requests. + <example> + <title>Basic <function>recode_string</function> example:</title> + <programlisting role="php"> +print recode_string ("us..flat", "The following character has a diacritical mark: &aacute;"); + </programlisting> + </example> </para> </refsect1> </refentry> @@ -81,21 +87,32 @@ <title>Description</title> <funcsynopsis> <funcprototype> - <funcdef>bool <function>recode_file</function></funcdef> - <paramdef>int <parameter>input</parameter></paramdef> - <paramdef>int <parameter>output</parameter></paramdef> + <funcdef>boolean <function>recode_file</function></funcdef> + <paramdef>string <parameter>request</parameter></paramdef> + <paramdef>resource <parameter>input</parameter></paramdef> + <paramdef>resource <parameter>output</parameter></paramdef> </funcprototype> </funcsynopsis> <para> Recode the file referenced by file handle <parameter>input</parameter> into the file referenced by file handle <parameter>output</parameter> according to the recode - request. Returns FALSE, if unable to comply, TRUE - otherwise. + <parameter>request</parameter>. Returns FALSE, if unable to + comply, TRUE otherwise. </para> <para> This function does not currently process filehandles referencing remote files (URLs). Both filehandles must refer to local files. + </para> + <para> + <example> + <title>Basic <function>recode_file</function> example</title> + <programlisting role="php"> +$input = fopen ('input.txt', 'r'); +$output = fopen ('output.txt', 'w'); +recode_file ("us..flat", $input, $output); + </programlisting> + </example> </para> </refsect1> </refentry> Index: phpdoc/nl/functions/strings.xml diff -u phpdoc/nl/functions/strings.xml:1.1 phpdoc/nl/functions/strings.xml:1.2 --- phpdoc/nl/functions/strings.xml:1.1 Tue Oct 10 15:07:53 2000 +++ phpdoc/nl/functions/strings.xml Sun Nov 12 15:03:58 2000 @@ -2425,6 +2425,28 @@ </para> <para> If <parameter>needle</parameter> is not found, returns false. + <note> + <para> + It is easy to mistake the return values for "character found at + position 0" and "character not found". Here's how to detect + the difference: + <informalexample> + <programlisting role="php"> +// in PHP 4.0b3 and newer: +$pos = strrpos ($mystring, "b"); +if ($pos === false) { // note: three equal signs + // not found... +} + +// in versions older than 4.0b3: +$pos = strrpos ($mystring, "b"); +if (is_string ($pos) && !$pos) { + // not found... +} + </programlisting> + </informalexample> + </para> + </note> </para> <para> If <parameter>needle</parameter> is not a string, it is converted @@ -3050,6 +3072,14 @@ // Lamb And She Loved It So. </programlisting> </example> + <note> + <simpara> + The definition of a word is any string of characters + that is immediately after a whitespace (These are: + space, form-feed, newline, carriage return, horizontal tab, + and vertical tab). + </simpara> + </note> </para> <para> See also <function>strtoupper</function>, Index: phpdoc/nl/functions/xslt.xml +++ phpdoc/nl/functions/xslt.xml <reference id="ref.xml"> <title>XSLT functions</title> <titleabbrev>XSLT</titleabbrev> <partintro> <sect1 id="xslt.partintro"> <title>Introduction</title> <sect2 id="xslt.intro"> <title>About XSLT and Sablotron</title> <para> 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 <ulink url="&url.xslt;">&url.xslt;</ulink>. </para> </sect2> <sect2 id="xslt.install"> <title>Installation</title> <para> This extension uses <productname>Sabloton</productname> and <productname>expat</productname>, which can both be found at <ulink url="&url.sablotron;">&url.sablotron;</ulink>. Binaries are provided as well as source. <para> On UNIX, run <command>configure</command> with the <option role="configure">--with-sablot</option> and <option role="configure">--enable-sablot-errors-descriptive</option> options. The <productname>Sablotron</productname> library should be installed somewhere your compiler can find it. </para> </sect2> <sect2 id="xslt.about"> <title>About This Extension</title> <para> This PHP extension implements support <productname>Sablotron</productname> from Ginger Alliance in PHP. This toolkit lets you transform XML documents into other documents, including new XML documents, but also into HTML or other target formats. It basically provides a standardized and portable template mechanism, separating content and design of a website. </para> <refentry id="function.xslt-closelog"> <refnamediv> <refname>xslt_closelog</refname> <refpurpose>Clear the logfile for a given instance of Sablotron</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>bool <function>xslt_closelog</function></funcdef> <paramdef>resource <parameter>xh</parameter></paramdef> </funcprototype> </funcsynopsis> <para> <variablelist> <varlistentry> <term><parameter>xh</parameter></term> <listitem> <simpara> A reference to the XSLT parser. </simpara> </listitem> </varlistentry> </variablelist></para> <para> This function returns false if <parameter>parser</parameter> does not refer to a valid parser, or if the closing of the logfile fails. Otherwise it returns true. </para> </refsect1> </refentry> <refentry id="function.xslt-create"> <refnamediv> <refname>xslt_create</refname> <refpurpose>Create a new XSL processor.</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>resource <function>xslt_create</function></funcdef> <void/> </funcprototype> </funcsynopsis> <para> This function returns a handle for a new XSL processor. This handle is needed in all subsequent calls to XSL functions. </para> </refsect1> </refentry> <refentry id="function.xslt-errno"> <refnamediv> <refname>xslt_errno</refname> <refpurpose>Return the current error number</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>int <function>xslt_errno</function></funcdef> <paramdef> <parameter><optional>int xh</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> <para> Return the current error number of the given XSL processor. If no handle is given, the last error number that occured anywhere is returned. </para> </refsect1> </refentry> <refentry id="function.xslt-error"> <refnamediv> <refname>xslt_error</refname> <refpurpose>Return the current error string</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>mixed <function>xslt_error</function></funcdef> <paramdef> <parameter><optional>int xh</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> <para> Return the current error string of the given XSL processor. If no handle is given, the last error string that occured anywhere is returned. </para> </refsect1> </refentry> <refentry id="function.xslt-fetch-result"> <refnamediv> <refname>xslt_fetch_result</refname> <refpurpose>Fetch a (named) result buffer</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>string <function>xslt_fetch_result</function></funcdef> <paramdef> <parameter>int xh</parameter> <parameter><optional>string result_name</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> <para> Fetch a result buffer from the XSLT processor identified by the given handle. If no result name is given, the buffer named "/_result" is fetched. </para> </refsect1> </refentry> <refentry id="function.xslt-free"> <refnamediv> <refname>xslt_free</refname> <refpurpose>Free XSLT processor</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>void <function>xslt_free</function></funcdef> <paramdef> <parameter>resource xh</parameter> </paramdef> </funcprototype> </funcsynopsis> <para> Free the XSLT processor identified by the given handle. </para> </refsect1> </refentry> <refentry id="function.xslt-openlog"> <refnamediv> <refname>xslt_openlog</refname> <refpurpose>Set a logfile for XSLT processor messages</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>bool <function>xslt_openlog</function></funcdef> <paramdef> <parameter>resource xh</parameter> <parameter>string logfile</parameter> <parameter><optional>int loglevel</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> <para> Set a logfile for the XSLT processor to place all of its error messages. </para> </refsect1> </refentry> <refentry id="function.xslt-output-begintransform"> <refnamediv> <refname>xslt_output_begintransform</refname> <refpurpose>unknown</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>unknown <function>xslt_output_begintransform</function></funcdef> <paramdef> <parameter>unknown</parameter> </paramdef> </funcprototype> </funcsynopsis> <para> This function lacks a prototype definition. </para> </refsect1> </refentry> <refentry id="function.xslt-output-endtransform"> <refnamediv> <refname>xslt_output_endtransform</refname> <refpurpose>unknown</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>unknown <function>xslt_output_endtransform</function></funcdef> <paramdef> <parameter>unknown</parameter> </paramdef> </funcprototype> </funcsynopsis> <para> This function lacks a prototype definition. </para> </refsect1> </refentry> <refentry id="function.xslt-process"> <refnamediv> <refname>xslt_output_process</refname> <refpurpose>unknown</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>unknown <function>xslt_process</function></funcdef> <paramdef> <parameter>unknown</parameter> </paramdef> </funcprototype> </funcsynopsis> <para> This function lacks a prototype definition. </para> </refsect1> </refentry> <refentry id="function.xslt-run"> <refnamediv> <refname>xslt_run</refname> <refpurpose>Apply a XSLT stylesheet to a file.</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>bool <function>xslt_run</function></funcdef> <paramdef> <parameter>resource xh</parameter> <parameter>string xslt_file</parameter> <parameter>string xml_data_file</parameter> <parameter><optional>string result</optional></parameter> <parameter><optional>array xslt_params</optional></parameter> <parameter><optional>array xslt_args</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> <para> Process the xml_data_file by applying the xslt_file stylesheet to it. The stylesheet has access to xslt_params and the processor is started with xslt_args. The result of the XSLT transformation is placed in the named buffer (default is "/_result"). </para> </refsect1> </refentry> <refentry id="function.xslt-set-sax-handler"> <refnamediv> <refname>xslt_set_sax_handler</refname> <refpurpose>Set SAX handlers for a XSLT processor</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>bool <function>xslt_set_sax_handler</function></funcdef> <paramdef> <parameter>resource xh</parameter> <parameter>array handlers</parameter> </paramdef> </funcprototype> </funcsynopsis> <para> Set SAX handlers on the ressource handle given by xh. </para> </refsect1> </refentry> <refentry id="function.xslt-transform"> <refnamediv> <refname>xslt_transform</refname> <refpurpose>unknown</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>unknown <function>xslt_transform</function></funcdef> <paramdef> <parameter>unknown</parameter> </paramdef> </funcprototype> </funcsynopsis> <para> This function lacks a prototype definition. </para> </refsect1> </refentry> </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: -->