note 42465 deleted from function.xslt-process by sobak
| From: | sobak@php.net | Date: | Tue, 22 Nov 2016 03:35:01 +0000 |
| Subject: | note 42465 deleted from function.xslt-process by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207371@lists.php.net to get a copy of this message | ||
Note Submitter: Justin Ramos
----
The xslt_ functions no longer work in PHP/5.0; the XSLT extension has been removed. To apply an XSL
transformation to an XML document, you must use DomDocument (from DOM) and XsltProcessor (from XSL):
<?
$xml = new DomDocument();
$xml->load('foo.xml');
$xsl = new DomDocument;
$xsl->load('foo.xsl');
$proc = new xsltprocessor();
$proc->importStyleSheet($xsl);
echo($proc->transformToXML($xml));
?>