note 53850 deleted from ref.xslt by sobak

From: Date: Tue, 22 Nov 2016 03:37:02 +0000
Subject: note 53850 deleted from ref.xslt by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-207381@lists.php.net to get a copy of this message
Note Submitter: Jon Dawson ---- Getting XSLT running under Red Hat/Plesk 7.5 The PHP installation on my VPS came with '--enable-xslt=shared' '--with-xslt-sablot' '--with-sablot-js=/usr' in the config line. However could not get any transformations to run. Finally got there following these steps: 1. ran 'yum install php-xslt' 2. This installed 'xslt.so' to usr/lib/php4 and other dependencies. 3. Add 'dl('xslt.so');' to the top of your php files you want to perform a translation in. e.g. dl('xslt.so'); // Allocate a new XSLT processor $xh = xslt_create(); // Process the document, returning the result into the $result variable $result = xslt_process($xh, 'test.xml', 'test.xsl'); // Output to browser echo $result;

« previous php.notes (#207381) next »