en fait je tourne en rond pcq il me remet toujours la même erreur :
Fatal error: Call to undefined function: xslt_create() in c:\program files\easyphp\www\tp\menu.php on line 47
menu.php :
<html><body>
<?
Class Menu
{var $menu_style;
var $lien_style;
var $menuitem_style;
var $menus_style;
var $largeur;
function Menu ($style)/* 10 */
{
switch ($style)
{
case 1 :
$this->style=".menu_style{".$this->menu_style."}"
.".menuitem_style{".$this->menuitem_style."}"
."a{".$this->lien_style."}";
break;
default : /* 20 */
$this->largeur=200;
$this->style=".menu_style{border:0 solid black; background-color:#F0F0F0; color:black;
font-family:verdana; font-size:11; font-weight:bold;}"
.".menuitem_style {border:0 solid black; background-color:#F0F0F0; color:black;
font-family:verdana; font-size:11; }"
."a {text-decoration: none; color: black;}"
."a:hover{color:black; font-weight:bold;}";
/* 30 */
break;
}}
function Afficher($xml,$xsl,$noeud,$url)
{
global $PATH_TRANSLATED;
$xml="file://".ereg_replace("/","\\",dirname ($PATH_TRANSLATED)."/".$xml);
$xsl="file://".ereg_replace("/","\\",dirname($PATH_TRANSLATED)."/".$xsl);/* 40 */
$param=array("noeud"=>$noeud, "url"=>$url);
$param["style"]=$this->style;
$xh=xslt_create();
return xslt_process($xh,$xml,$xsl,null,array(),$param);
}
}
?>
</body>
</html>