/*
Source du fichier mon_fichier.php
*/
$xsl = new DomDocument();
$url_xsl = "https://mon_serveur/style.xsl";
$xsl->load($url_xsl);
$inputdom = new DomDocument();
$url_xml = "https://mon_serveur/fichier.xml ";
$inputdom->load($url_xml);
$proc = new XsltProcessor();
$xsl = $proc->importStylesheet($xsl);
$proc->setParameter(null, "titles", "Titles");
$newdom = $proc->transformToDoc($inputdom);
print $newdom->saveXML();
...mais ça ne marche pas alors que ça marche avec http.J'obtiens les messages d'erreur suivants :
D'après les messages d'erreur, il s'agirait d'un problème de configuration de PHP, savez-vous comment le résoudre ?Notice: DOMDocument::load() [function.load]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /var/www/mon_fichier.php on line 5
Notice: DOMDocument::load() [function.load]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /var/www/mon_fichier.php on line 5
Warning: I/O warning : failed to load external entity "https://mon_serveur/style.xsl" in /var/www/mon_fichier.php on line 5
Warning: compilation error in /var/www/mon_fichier.php on line 10
Warning: xsltParseStylesheetProcess : empty stylesheet in /var/www/mon_fichier.php on line 10
Warning: XSLTProcessor::transformToDoc() [function.transformToDoc]: No stylesheet associated to this object in /var/www/mon_fichier.php on line 13
Fatal error: Call to a member function saveXML() on a non-object in /var/www/mon_fichier.php on line 14
Merci d'avance...