Jump to content

[SOLVED] XSLTProcessor class


Andy-H

Recommended Posts

I have downloaded and installed the Orca 1.1 AJAX forum script but it had a few errors, I have fixed a couple but am stuck at this one...

 

Fatal error: Class 'XsltProcessor' not found in /usr/home/mafiaworld/domains/mafia-world.net/public_html/hooligan/forum/classes/BxXslTransform.php on line 91

 

<?php
		if (((int)phpversion()) >= 5)		
		{
			$xml = new DOMDocument();
			$xml->loadXML($this->_xml);

			$xsl = new DomDocument();
			$xsl->load($this->_xsl);

			$proc = new XsltProcessor(); /// line 91
			$proc->importStyleSheet($xsl);
			$res = $proc->transformToXML($xml);
		}
?>

 

I have echoed the PHP version as an integer to check and it came up as 5, any help apperciated... =P

Link to comment
https://forums.phpfreaks.com/topic/121197-solved-xsltprocessor-class/
Share on other sites

NVM lol

 

User Rating: 952  |  Rate This User Report this Post to a Moderator | Link

 

 

 

Sander  Moderator - Web Development  Member since: 4/19/2002  From: Den Bosch, Netherlands

 

 

Posted - 10/31/2005 1:36:42 AM

I think I got it.

 

libxlst needs to be installed on your server (ask your admin) and it needs to be enabled in the PHP configuration. Create a file with only the phpinfo() command and see if the --with-xsl configuration directive is set. If not, then the XLST processor is not available. Bug your admin to enable it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.