XSLT doesn't work anymore since PHP has been upgraded from 5.0.3 to 5.1.1

From: Date: Wed, 14 Dec 2005 12:30:45 +0000
Subject: XSLT doesn't work anymore since PHP has been upgraded from 5.0.3 to 5.1.1
Groups: php.general 
Request: Send a blank email to php-general+get-227409@lists.php.net to get a copy of this message
Hi My ISP upgraded from 5.0.3 to 5.1.1. Since then, XSLT (at least my script which uses it) doesn't work anymore. The first error message on http://www.pinkjuice.com/hayashi/materials/ is Warning: XSLTProcessor::importStylesheet() [function.importStylesheet]: Undefined variable in /[...]/hayashi/pages.php5 on line 12 pages.php5: <?php # print dirname(__FILE__); $xslt = new DomDocument(); $xslt->load("this.xslt"); $inputdom = new DomDocument(); $inputdom->load("../page_template.xml"); $proc = new XsltProcessor(); # previous version of the following line: # $xslt = $proc->importStylesheet($xslt); $proc->importStylesheet($xslt); $proc->setParameter(null, "pagedir", $pagedir); # seems to set params *and* toplevel variables # $proc->setParameter(null, "topdir", $topdir); $newdom = $proc->transformToDoc($inputdom); print $newdom->saveXML(); ?> Thanks in advance, Tobi

« previous php.general (#227409) next »