note 17995 added to function.xslt-process
| From: | Bill Humphries | Date: | Sun, 06 Jan 2002 21:48:39 +0000 |
| Subject: | note 17995 added to function.xslt-process | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-24466@lists.php.net to get a copy of this message | ||
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.
--
http://www.php.net/manual/en/function.xslt-process.php
http://master.php.net/manage/user-notes.php?action=edit+17995
http://master.php.net/manage/user-notes.php?action=delete+17995
http://master.php.net/manage/user-notes.php?action=reject+17995