Convert the result of a query after a xslt transformation
"Pasche" <[email protected]> Tue, 6 Sep 2005 21:54:34 +0200
| Newsgroups | gmane.text.xml.xindice.user |
|---|---|
| Message-ID | <[email protected]> |
I transform the result of a xindice query by this:
javax.xml.transform.TransformerFactory tFactory =
javax.xml.transform.TransformerFactory.newInstance();
Result res = new StreamResult(System.out);
Source xsl = new StreamSource(stylesheet);
javax.xml.transform.Transformer transformer = tFactory.newTransformer(xsl);
transformer.transform(src, res);
As you can see, the result of the transformation is shown in Tomcat (or
whatever) console (System.out). Now I want to return this result as a String
or whatever because this class is called from a JSP in which I want to put
out the result of the transformation.
Can anybody help me how I can deliver the Result to a JSP?
JasDA