title: Catch output stream of xsl result-document
body: <p>I need a way to interfere in writting xsl result documents to avoid writting them to file system. Right now my template is writting to a temporary directory, and then i zip that directory. I want to do that whitout writting to file system. I am using saxon procesor. A solution that is using just standard java libraries is perfered. Any suggestion is appreciated.</p>
  
  <p><strong>EDIT:</strong> I found this class for .net saxon api <a href="http://www.saxonica.com/documentation/dotnetdoc/Saxon/Api/IResultDocumentHandler.html" rel="nofollow">http://www.saxonica.com/documentation/dotnetdoc/Saxon/Api/IResultDocumentHandler.html</a>
  I need something equivalent for java.</p>