note 19474 rejected from function.xslt-process by victor

From: Date: Sun, 29 Sep 2002 09:15:04 +0000
Subject: note 19474 rejected from function.xslt-process by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-37384@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

« previous php.notes (#37384) next »