Jump to content

XsltProcessor newbie php question


orbitalnets

Recommended Posts

Hi All,

 

I am trying to i file i made with the help of a PHP xml book.

I copy this file as it is from the tutorial.

 

Is my PHP setting to ready to use the XsltProcessor?

Here is my system info:

 

http://www.orbitalnets.com/info.php

 

Here is the code:

 

<?php
$xmlProc = new XsltProcessor();

$xslt = new DomDocument();
$xslt -> load("movies.xslt");

$xmlProc -> importStylesheet($xslt);

$xml = new DomDocument();
$xml -> load("movies.xml");

if ($html = $xmlProc -> transformToXML($xml)) 
{
echo $html;
} else {
trigger_error(E_USER_ERROR);
}
?>

 

Should I install something for it to work? I can not even see any error logs.

Also I noticed that I can not debug. Not even if I turn on errors in my code with ini_set("error_reporting","E_ALL");

I have errors turn off in php.ini with with that command I am supposed to see errors right?

 

REgards,

 

Dwayne

Link to comment
https://forums.phpfreaks.com/topic/96301-xsltprocessor-newbie-php-question/
Share on other sites

it doesn't look like your PHP has XSL compiled in:

 

From http://us.php.net/xsl:

 

"PHP 5 includes the XSL extension by default and can be enabled by adding the argument --with-xsl[=DIR] to your configure line. DIR is the libxslt installation directory."

 

your config info does not show the compile argument --with-xsl

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.