Hi, I tried FopServlet example and its works fine for PDF. Is it possible to do the same for HTML that is http://servername/servlet/FopServlet?xml=data.xml&xsl=format.xsl&dummy=test.html ,I tried to change the code of FopServlet like ...... response.setContentType("text/html");
Driver driver = new Driver(foFile, out); driver.setLogger(log); driver.setRenderer(Driver.RENDER_TXT); ... But I'm getting unknown formaating object HTML as error. Have any one tried it? Basically I want to convert XML to PDF or HTML using servlets.Do I have to write my own code,or is there out something. Please comments. Regards Balaji http://messenger.yahoo.com.au - Yahoo! Messenger - A great way to communicate long-distance for FREE!