PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

xslt_free> <xslt_errno
Last updated: Fri, 05 Sep 2008

view this page in

xslt_error

(PHP 4 >= 4.0.3)

xslt_errorGibt den aktuellen Fehlerstring zurück.

Beschreibung

mixed xslt_error ([ int $xh ] )

Gibt den aktuellen Fehlerstring zu einem gegebenen XSLT-Prozessor zurück. Ist kein Handle xh gegeben, so wird der Fehlerstring des zuletzt aufgetretenen Fehlers zurückgegeben.



add a note add a note User Contributed Notes
xslt_error
mikes at ayeltd dot biz
05-Jan-2004 02:18
There may be cases where a null $result is legitimate, in this case add a test for non-zero xlst_errno:

<?php

$xh
= xslt_create();
$result = xslt_process($xh, 'dog.xml', 'pets.xsl');
if (!
$result && xslt_errno($xh) > 0) {
   die(
sprintf("Cannot process XSLT document [%d]: %s",
              
xslt_errno($xh), xslt_error($xh)));
}

echo
$result;

xslt_free($xh);
?>

xslt_free> <xslt_errno
Last updated: Fri, 05 Sep 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites