2 Check xsltprocessor::registerPHPFunctions and a non-string function in xsl
4 The XSL script tries to call a php function that is not a string which
8 if (!extension_loaded('xsl')) {
14 include dirname(__FILE__) .'/prepare.inc';
15 $phpfuncxsl = new domDocument();
16 $phpfuncxsl->load(dirname(__FILE__)."/phpfunc-nostring.xsl");
18 echo "Error while parsing the xsl document\n";
21 $proc->importStylesheet($phpfuncxsl);
22 var_dump($proc->registerPHPFunctions());
23 var_dump($proc->transformToXml($dom));
27 Warning: XSLTProcessor::transformToXml(): Handler name must be a string in %s on line %d
30 Christian Weiske, cweiske@php.net
31 PHP Testfest Berlin 2009-05-09