note 53850 added to ref.xslt
| From: | JonDawson at osu1 dot php dot net | Date: | Wed, 15 Jun 2005 08:23:25 +0000 |
| Subject: | note 53850 added to ref.xslt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90448@lists.php.net to get a copy of this message | ||
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;
----
Manual Page -- http://www.php.net/manual/en/ref.xslt.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53850
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53850&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53850&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53850&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53850&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53850&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53850&report=yes
Search -- http://master.php.net/manage/user-notes.php