CXXIII. Funzioni XSLT

Introduzione

XSLT e Sablotron

XSLT (Extensible Stylesheet Language (XSL) Transformations) è un linguaggio per trasformare documenti XML in altri documenti XML. E' uno standard definito dal World Wide Web consortium (W3C). Informazioni circa l' XSLT e le relative tecnologie possono essere trovate su http://www.w3.org/TR/xslt.

Installazione

Questa estensione usa Sablotron e expat, i quali possono essere entrambi trovati su http://www.gingerall.com/. I binari sono forniti assieme al codice sorgente.

Su UNIX, fai partire configure con l'opzione --enable-xslt --with-xslt-sablot. La libreria Sablotron dovrebbe essere installata da qualche parte dove il compilatore può trovarla.

Questa estensione

L'estensione PHP fornisce un processore indipendente API alle trasformazioni XSLT. Attualmente questa estensione supporta solo la libreria Sablotron della Ginger Alliance. Il supporto è pianificato per le altre librerie, come la libreria Xalan o la libreria libxslt.

Nota: Questa estensione è differente dall'estensione sablotron distribuita con le versioni del PHP precedenti PHP 4.1, attualmente è supportata nel PHP 4.1 solo la nuova estensione XSLT. Se hai bisogno di supporto per le vecchie estensioni, fai la tua domanda sulla mailing list php-general@lists.php.net.

Sommario
xslt_backend_info --  Returns the information on the compilation settings of the backend
xslt_backend_name --  Returns the name of the backend
xslt_backend_version --  Returns the version number of Sablotron
xslt_create -- Crea un nuovo processore XSLT
xslt_errno -- Restituisce un numero di errore
xslt_error -- Restituisce una stringa di errore
xslt_free -- Libera un processore XSLT
xslt_getopt --  Get options on a given xsl processor
xslt_process -- Esegue una trasformazione XSLT
xslt_set_base -- Imposta l'URI di base per tuttte le trasformazioni XSLT
xslt_set_encoding -- Imposta l'encoding per il parsing dei documenti XML
xslt_set_error_handler -- Imposta un error handler per un processore XSLT
xslt_set_log -- Imposta il file di log per scrivere i messaggi di log
xslt_set_object --  Sets the object in which to resolve callback functions
xslt_set_sax_handler -- Imposta un handler SAX per un processore XSLT
xslt_set_sax_handlers --  Imposta gli handler SAX da richiamare quando il document XML viene processato
xslt_set_scheme_handler -- Imposta lo schema dell'handler per un processore XSLT
xslt_set_scheme_handlers -- Imposta lo schema degli handler per un processore XSLT
xslt_setopt --  Set options on a given xsl processor