load($nomFich); $fds = $doc->createProcessingInstruction('xml-stylesheet', "type='text/xsl' href=\"$nomXSL\""); $rac = $doc->lastChild; $doc->insertBefore($fds, $rac); return $doc; }//voirNotes $mat = 'matieres/'.$_GET['matiere'].'.xml'; $man = 'manieres/'.$_GET['maniere'].'.xsl'; $noms_notes_1 = voirNotes($mat, $man); echo $noms_notes_1->saveXML(); ?>