From ab8f9fadbe0b1dd7760686a2091afd096ed595ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20K=C3=B6hntopp?= Date: Sun, 12 Nov 2000 22:49:19 +0000 Subject: [PATCH] I have not found any xslt documentation, so I generated some. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@35625 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/xslt.xml | 367 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 367 insertions(+) create mode 100644 functions/xslt.xml diff --git a/functions/xslt.xml b/functions/xslt.xml new file mode 100644 index 0000000000..e56b81888f --- /dev/null +++ b/functions/xslt.xml @@ -0,0 +1,367 @@ + + XSLT functions + XSLT + + + + Introduction + + About XSLT and Sablotron + + 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;. + + + + Installation + + This extension uses Sabloton + and expat, which can both be + found at &url.sablotron;. Binaries + are provided as well as source. + + On UNIX, run configure with the and + options. The Sablotron library + should be installed somewhere your compiler can find it. + + + + + About This Extension + + This PHP extension implements support + Sablotron 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. + + + + + xslt_closelog + Clear the logfile for a given instance of Sablotron + + + Description + + + bool xslt_closelog + resource xh + + + + + + xh + + + A reference to the XSLT parser. + + + + + + This function returns false if parser does + not refer to a valid parser, or if the closing of the logfile + fails. Otherwise it returns true. + + + + + + + xslt_create + Create a new XSL processor. + + + Description + + + resource xslt_create + + + + + This function returns a handle for a new XSL processor. This handle + is needed in all subsequent calls to XSL functions. + + + + + + + xslt_errno + Return the current error number + + + Description + + + int xslt_errno + + int xh + + + + + Return the current error number of the given XSL processor. If + no handle is given, the last error number that occured anywhere + is returned. + + + + + + + xslt_error + Return the current error string + + + Description + + + mixed xslt_error + + int xh + + + + + Return the current error string of the given XSL processor. If + no handle is given, the last error string that occured anywhere + is returned. + + + + + + + xslt_fetch_result + Fetch a (named) result buffer + + + Description + + + string xslt_fetch_result + + int xh + string result_name + + + + + 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. + + + + + + + xslt_free + Free XSLT processor + + + Description + + + void xslt_free + + resource xh + + + + + Free the XSLT processor identified by the given handle. + + + + + + + xslt_openlog + Set a logfile for XSLT processor messages + + + Description + + + bool xslt_openlog + + resource xh + string logfile + int loglevel + + + + + Set a logfile for the XSLT processor to place all of its error + messages. + + + + + + + xslt_output_begintransform + unknown + + + Description + + + unknown xslt_output_begintransform + + unknown + + + + + This function lacks a prototype definition. + + + + + + + xslt_output_endtransform + unknown + + + Description + + + unknown xslt_output_endtransform + + unknown + + + + + This function lacks a prototype definition. + + + + + + + xslt_output_process + unknown + + + Description + + + unknown xslt_process + + unknown + + + + + This function lacks a prototype definition. + + + + + + + xslt_run + Apply a XSLT stylesheet to a file. + + + Description + + + bool xslt_run + + resource xh + string xslt_file + string xml_data_file + string result + array xslt_params + array xslt_args + + + + + 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"). + + + + + + + xslt_set_sax_handler + Set SAX handlers for a XSLT processor + + + Description + + + bool xslt_set_sax_handler + + resource xh + array handlers + + + + + Set SAX handlers on the ressource handle given by xh. + + + + + + + xslt_transform + unknown + + + Description + + + unknown xslt_transform + + unknown + + + + + This function lacks a prototype definition. + + + + + + +