Bonjour,

je voudrais que mon applet me fasse une transfo XSLT.

Dans le code de mon applet, j'ai écrit ca :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
String stringResult="";
StringWriter sw = new StringWriter(); 
Result result = new StreamResult(sw);
 
StreamSource xslval = new StreamSource(FichierXSL);
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer;
try {
transformer = tFactory.newTransformer(xslval);
transformer.transform(new StreamSource(FichierXML), result);
stringResult = sw.toString();
 
} catch (TransformerConfigurationException e) {
	e.printStackTrace();
}		
return stringResult;
Le code me parait bon, mais mon applet me rend toujours "null".
Vous avez une idée?