superklye
03-08-07, 09:30 PM
I'm still a bit of a n00b when it comes to PHP, but my host Netfirms is running PHP5 and I'm attempting to use the XSLTProcessor() class on the sitemap for a site I'm building, but whenever I click the link to go to the sitemap, I get the following error:
Fatal error: Class 'XSLTProcessor' not found in /mnt/w0702/d08/s31/b0283f41/www/cms/sitemap.php on line 35
What's the deal? Am I doing something wrong?
Here's the PHP code...
$xml = simplexml_load_string($xmlstring);
$xsl = new DOMDocument;
$xsl->load('xslt/sitemap.xsl');
$proc = new XSLTProcessor();
$proc->importStyleSheet($xsl);
$proc->setParameter('', 'SORTBY', $sortby);
echo $proc->transformToXML($xml);
Fatal error: Class 'XSLTProcessor' not found in /mnt/w0702/d08/s31/b0283f41/www/cms/sitemap.php on line 35
What's the deal? Am I doing something wrong?
Here's the PHP code...
$xml = simplexml_load_string($xmlstring);
$xsl = new DOMDocument;
$xsl->load('xslt/sitemap.xsl');
$proc = new XSLTProcessor();
$proc->importStyleSheet($xsl);
$proc->setParameter('', 'SORTBY', $sortby);
echo $proc->transformToXML($xml);