Results 1 to 3 of 3
Jul 5, 2007, 09:48 #1
- Join Date
- Nov 2005
- Moss, Norway.
- 0 Post(s)
- 0 Thread(s)
PHP XSLTProcessor problem in Sitepoint XML Book.
Book: No Nonsense XML Web Development With PHP
April 2006 edition.
I get an error with the XML sitemap in chapter 5.
Here is the actual page.
I have contacted my hoser and asked them to install the XSLTProcessor as explained in the book on page 132 (April 2006 version).
"XSLT support in PHP is provided by the optional XSL extension : http://www.php.net/xsl
This extension isn't enabled by default: So you'll need to compile it in using
on Unix style installations. You'll need to install libxslt:
on your server before you can do this.
On, Windows the process is a bit easier: You simply need to add the php_xsl.dll file to your php.ini file on Windows."
Answer from hoster,
I have now installed: /usr/ports/textproc/p5-XML-LibXSLT
Even with this line
php_value include_path ".:/usr/local/lib/php:/usr/ports/textproc/p5-XML-LibXSLT"
I get the same error.
Line 35 look like this:
$proc = new XSLTProcessor;
so it is obvious that the XSLT processor is not found.
Anybody that has experienced the same problem and know the solution? Thanks in advance.
P.S. I changed common.inc.php to:
//$fileDir = $_SERVER['DOCUMENT_ROOT'] . '/xml/'; Original version.
$fileDir = $_SERVER['DOCUMENT_ROOT'] . '/Books/XML/05advxslt/cms/xml/';
Also posted as a post in another thread in the XML sub forum.