PHP ʖ²ἯTH
º/A
CIX. XSLT functions
½鉜
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, 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.
Шdz
This extension uses Sablotron and expat, which can both be found at http://www.gingerall.com/. Binaries are provided as well as source.
°²װ
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=DIR --with-iconv-dir=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=DIR.
Note to Win32 Users: In order to enable this module on a Windows environment, you must copy sablot.dll 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)
ԋАʱŤփ
¸À©չģ¿鎴¶¨ҥȎºΉ薃ָn¡£
Դ Ѝ
¸À©չģ¿鎴¶¨ҥȎºΗʔ´ Ѝ¡£
Ԥ¶¨ҥ³£
ӉӚբЩ³£ʇӉ¸À©չģ¿鶨ҥµģ¬Ҳ´˖»ӐԚ¸À©չģ¿鱻±ҫµ½ PHP £¬»ڔːЊ±±»¶¯̬¼Ӕغ³£²œА§¡£
Drop all logging and error reporting. This is a generic option for all backends that may be added in the future.
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.
Suppress the whitespace stripping (on data files only).
Consider unresolved documents (the document() function) non-lethal.
Error return code, for scheme handlers.
Ŀ¼ xslt_create -- Create a new XSLT processor xslt_errno -- Return a error number xslt_error -- Return a error string xslt_free -- Free XSLT processor xslt_process -- Perform an XSLT transformation xslt_set_base -- Set the base URI for all XSLT transformations xslt_set_encoding -- Set the encoding for the parsing of XML documents xslt_set_error_handler -- Set an error handler for a XSLT processor xslt_set_log -- Set the log file to write log messages to xslt_set_sax_handler -- Set SAX handlers for a XSLT processor xslt_set_sax_handlers -- Set the SAX handlers to be called when the XML document gets processed xslt_set_scheme_handler -- Set Scheme handlers for a XSLT processor xslt_set_scheme_handlers -- Set the scheme handlers for the XSLT processor
º/A
ưµ㼯A
xmlrpc_set_type
ɏһ¼¶
xslt_create