qui c'è il codice che mi da problemi, invece di restituirmi una stringa formattata mi restituisce solo una stringa con i dati contenuti nell'xml ma senza tags:
codice:
StreamSource xmlSource = new StreamSource(new StringReader(xml));
StreamResult htmlResult = new StreamResult(out);
StreamSource xslSource = new StreamSource(new File("/xsl/sezioneHome.xsl"));
TransformerFactory tf = TransformerFactory.newInstance();
Transformer transformer = tf.newTransformer(xslSource);
transformer.transform(xmlSource, htmlResult);