General discussion

Locked

PHP-XSLT

By dsraja ·
We are trying to store the result html from the xslt transformation into a file so that we can use it as a static file and we will be updating this static page using crontab.

we have used xslt_process() to perform this xslt transformation.

when I run my code through browser, it is
working properly. But when I run this php
code in linux shell using "php <filename>"(using cron), it was showing this error.

code:
----
$args=array('/_xml'=>$xmlobj->dumpmem());
$parser = xslt_create();
$resulthtml=xslt_process($parser, 'arg:/_xml', $this->mTemplate, NULL, $args);

$this->mTemplate variable is having the xsl file name.


Error message
^^^^^^^^^^^^^
<br>
Warning: Wrong parameter count for xslt_process() in abc.php on line 81<br>
(this wrning message is from the email sent by crontab)
Is there any other function in php 4 which we can use for xsl transformation?

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

PHP-XSLT

by Jaqui In reply to PHP-XSLT

http://www.php.net/manual/en/ref.xslt.php

this is the current list of xslt functions in php.
no other fuction meet your requirements.

http://www.w3.org/TR/xslt

current documentation on xslt.
doesn't seem to indicate that you are going to have much luck finding another function, you may have to code your own.

Back to Web Development Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums