Bonjour

comment transformer sous mozilla un fichier xml avec l'objet dom
j'ai essaye ceci

/
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
/ NAVIGATEUR MOZILLA //
	// CHARGEMENT DU FICHIER XML
    var oXML = document.implementation.createDocument("", "", null);
	oXML.load(file);
	// CAHRGEMENT DU FICHIER XSL
    var oXSL = document.implementation.createDocument("http://www.w3.org/1999/XSL/Transform","stylesheet",null);
	oXSL.load("commande.xsl");
	//TRANSFORMATION EN HTML
	var xsltProcessor = new XSLTProcessor();
	xsltProcessor.importStylesheet(oXSL);
	var htmlFragment = xsltProcessor.transformToFragment(oXML,document);
	document.getElementById("root").appendChild(htmlFragment);
mais ca ne passe pas
merci