We are using Xalan XSLT to do XSL transform to generate HTML output i.e. XML+XSL=HTML.
Following is the code.
out=response.getOutputStream();
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer()
transformer.transform(new StreamSource(in), new StreamResult(out));
I do not want for the whole transform to finish before data is displayed on the browser. I want the StreamResult that has the HTML output to start sending data to the browser as it does perform xsl transform on individual XML nodes/XSL apply templates so that user gets the impression something is showing on the browser as it is generating because it is possible for the report XML to be big.
How do I achive that? Does Xalan XSLT support that? Does any other XSLT parser support it.
I would appreciate your advice.