如果你在php5中用xslt_create()这个php4中的方法时,将会得到call
to undefined function xslt_create()这个error。
reason is : 该扩展已经从 PHP 5 中移出,然后移入到 PECL 仓库中。
php5的ext目录下已经没有php_xslt.dll了,取而代之的是php_xsl.dll。
the sample below shows how to use php_xsl.dll in php5
<?php
/* Load the two XML sources
*/
$xml = new DomDocument; // from /ext/dom
$xml->load('example.xml');
$xsl = new
DomDocument;
$xsl->load('example.xsl');
/*
Configure the transformer */
$proc = new
xsltprocessor;
$proc->importStyleSheet($xsl); // attach
the xsl rules
echo $proc->transformToXML($xml); //
actual transformation
?>
详见
http://www./manual/en/ref.xsl.php