I get the error:

Fatal error: Only variables can be passed by reference in
/home/tanguay/test/testxslt.php on line 7

when I run this code:


// Allocate a new XSLT processor
$xh = xslt_create();

// Process the document, returning the result into the $result variable
$result = xslt_process($xh, 'content.xml', 'website.xsl');
if ($result) {
    print "SUCCESS, sample.xml was transformed by sample.xsl into the
    print " variable, the \$result variable has the following
    print "<pre>\n";
    print $result;
    print "</pre>\n";
else {
    print "Sorry, sample.xml could not be transformed by sample.xsl into";
    print "  the \$result variable the reason is that " . xslt_error($xh) .
    print " and the error code is " . xslt_errno($xh);



Can anyone tell me why? Is this a problem with the parser or some other
I am new to the XSLT functions.



PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to