xslt_error
(PHP 4 >= 4.0.3)
xslt_error -- Restituisce una stringa di errore
Descrizione
mixed
xslt_error ( resource xh)
Restituisce una stringa che descrive l'ultimo errore restituito dal
processore XSLT indicato.
Esempio 1.
Gli errori di Handling usano le funzioni xslt_error() e
xslt_errno().
<?php
$xh = xslt_create();
$result = xslt_process($xh, 'dog.xml', 'pets.xsl');
if (!$result) {
die(sprintf("Cannot process XSLT document [%d]: %s",
xslt_errno($xh), xslt_error($xh)));
}
print($result);
xslt_free($xh);
?> |
|