note 17995 deleted from function.xslt-process by sobak

From: Date: Tue, 22 Nov 2016 03:31:21 +0000
Subject: note 17995 deleted from function.xslt-process by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-207334@lists.php.net to get a copy of this message
Note Submitter: Bill Humphries <whump at mac dot com> ---- It appears that the xslt_process function does not like to have NULLs passed into it for the Argument and Parameter arrays. However, you can pass it an empty Argument array (modulo any typos): $xh = xslt_create(); $args = array(); $params = array( 'foo' => 'bar' ); $result = xslt_process($xh, 'source.xml','source.xsl',NULL, $args,$params); if ($result) { print $result; } else { print "Error: ".xslt_error($xh); } That way you don't have to worry about providing methods for reading files into the argument array.

« previous php.notes (#207334) next »