Smart_boy
07-28-2008, 07:08 AM
Hi,
I create a simple php file and try to run it. But i get an error to it.
Below is my php source code:
<?php
// Create an XSLT processor
$xsltproc = xslt_create();
// Perform the transformation
$html = xslt_process($xsltproc, 'docbook.xml', 'docbook.xsl');
// Detect errors
if (!$html) die('XSLT processing error: '.xslt_error($xsltproc));
// Destroy the XSLT processor
xslt_free($xsltproc);
// Output the resulting HTML
echo $html;
?>
When i tried to run this script, i get an error as shown in below:
Fatal error: Call to undefined function xslt_create() in C:\Program Files\EasyPHP 2.0b1\www\xsl\docbook.php on line 3
I don't know how to solve this. Any else can help me?
Thank you very much!
I create a simple php file and try to run it. But i get an error to it.
Below is my php source code:
<?php
// Create an XSLT processor
$xsltproc = xslt_create();
// Perform the transformation
$html = xslt_process($xsltproc, 'docbook.xml', 'docbook.xsl');
// Detect errors
if (!$html) die('XSLT processing error: '.xslt_error($xsltproc));
// Destroy the XSLT processor
xslt_free($xsltproc);
// Output the resulting HTML
echo $html;
?>
When i tried to run this script, i get an error as shown in below:
Fatal error: Call to undefined function xslt_create() in C:\Program Files\EasyPHP 2.0b1\www\xsl\docbook.php on line 3
I don't know how to solve this. Any else can help me?
Thank you very much!