Title: XML/XSL without using Cocoon
Thank you, I am going to try this
 
Gilles
-----Original Message-----
From: Iouri Michtchenko [mailto:[EMAIL PROTECTED]]
Sent: jeudi, 14. mars 2002 13:36
To: [EMAIL PROTECTED]
Subject: RE: XML/XSL without using Cocoon

Hi,
I am using POI with Oracle XSQL Servlet:
 
import org.w3c.dom.Document;
import oracle.xml.parser.v2.XMLDocument;
import java.io.PrintWriter;
import oracle.xml.xsql.*;
import net.sourceforge.poi.serialization.HSSFSerializer;
 
public class XSQLExcelSerializer implements XSQLDocumentSerializer
{
  public void serialize(Document doc, XSQLPageRequest env) throws Throwable
  {
    try
    {
      HSSFSerializer hssf = new HSSFSerializer();
      String mimeType = hssf.getMimeType();
      env.setContentType("application/" + mimeType);
      hssf.setOutputStream(env.getOutputStream());
      ((XMLDocument) doc).reportSAXEvents(hssf);
    }
    catch(Exception e)
    {
      e.printStackTrace();
      throw e;
    }
  }
}


**********************************************************************
This E-mail and any files transmitted with it are confidential
and intended for the exclusive use of the addressee(s) only.
You should not disclose its contents to any other person.
If you are not the intended recipient please notify the sender
immediately.
**********************************************************************

Reply via email to