Bonjour,

j'ai probléme bizarre avec mes codes php qui chargent mes xsl !!! dans chacun de mes fichiers php qui charge un XSL , j'obient en haut de la page ce message :

Strict Standards: Non-static method DOMDocument::load() should not be called statically in C:\Documents and Settings\mo\Mes documents\html\proj-pub.php on line 11

mais mon code marche tres bien, mais ce message reste toujours!

y'a t-il au moins un moyen pour ne plus avoir ce message ?

voici mon code php :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
 
$dom=DomDocument::load("projets.xsl");
$proc= new XSLTProcessor;
$proc->importStyleSheet($dom);
$proc->registerPHPFunctions();
 
$dom= new DomDocument;
$dom->preserveWhiteSpace = FALSE;
$dom->formatOutput = TRUE;
$dom->load("projets.xml");
 
echo $proc->transformToXML($dom); 
?>


merci



...