note 19474 added to function.xslt-process

From: Date: Thu, 28 Feb 2002 15:17:51 +0000
Subject: note 19474 added to function.xslt-process
Groups: php.notes 
Request: Send a blank email to php-notes+get-27171@lists.php.net to get a copy of this message
None of the given solutions seems to work for me... when parsing anything else than variables to the xslt_process for example: -------------------------------- $pro = xslt_create(); $xslstring = implode('',file("catalog.xsl")); $xmlstring = implode('',file("catalog.xml")); $msg = xslt_process($pro,$xslstring, $xmlstring,NULL,$result); echo $result; xslt_free($pro); -------------------------------- will cause the following error: Wrong parameter count for xslt_process(); this instead works fine: -------------------------------- $pro = xslt_create(); $xslstring = implode('',file("catalog.xsl")); $xmlstring = implode('',file("catalog.xml")); $msg = xslt_process($xslstring,$xmlstring,$result); echo $result; xslt_free($pro); -------------------------------- any ideas what happens? Every example i found for using sablotron with the functions built into PHP tells you to pass the reference of the created processor (in this case $pro) to the xslt_process function as the first argument. If i do so, the thing won't work... no idea what's going wrong... if anybody can find the error, help would be nice. TIA -- http://www.php.net/manual/en/function.xslt-process.php http://master.php.net/manage/user-notes.php?action=edit+19474 http://master.php.net/manage/user-notes.php?action=delete+19474 http://master.php.net/manage/user-notes.php?action=reject+19474

« previous php.notes (#27171) next »