W3C home > Mailing lists > Public > www-xsl-fo@w3.org > March 2001

RE: It doesn´t work

From: Kelly Campbell <camk@channelpoint.com>
Date: Tue, 13 Mar 2001 09:11:50 -0700
Message-ID: <E583503B7F57D41196A600D0B76FDDD5DD0849@cpex2.channelpoint.com>
To: "'Hernandez Ramirez, Marta'" <mahernandez@opciona.com>, "'www-xsl-fo@w3.org'" <www-xsl-fo@w3.org>
This is another question which is for a specific implementation, FOP, and
should probably go to the fop-dev mailing list. Explain the symptoms of the
problems you're having and what version of FOP you're trying to use this
code with. It's hard to tell you what's wrong if we don't know what the
problem is.

-Kelly

> -----Original Message-----
> From: Hernandez Ramirez, Marta [mailto:mahernandez@opciona.com]
> Sent: Tuesday, March 13, 2001 5:48 AM
> To: 'www-xsl-fo@w3.org'
> Subject: It doesn´t work
> 
> 
> I am trying to convert an XML file to PDF file and I use a XSL file.
> This is the code I use, does anybody Know why it doesn´t work?
> 
> 
> import javax.servlet.*;
> import javax.servlet.http.*;
> import java.io.*;
> import java.util.*;
> 
> import org.apache.fop.apps.XalanCommandLine;
> 
> public class ServletFop extends HttpServlet {
>   private static final String CONTENT_TYPE = "text/html";
>   /**Inicializar variables globales*/
>   public void init(ServletConfig config) throws ServletException {
>     super.init(config);
>   }
>   /**Procesar una petición HTTP Get*/
>   public void doGet(HttpServletRequest request, HttpServletResponse
> response) throws ServletException, IOException
>   {
>     String pepito;
>        response.setContentType(CONTENT_TYPE);
>           PrintWriter out = response.getWriter();
>           out.println("<html>");
>           out.println("Pasa1");
> 
>       try
>     {
>  	XalanCommandLine miobjeto;
>         String eo[]= new String[3];
>         eo[0]="normal.xml";
>         eo[1]="normal.xsl";
>         eo[2]="normal.pdf";
>         miobjeto = new XalanCommandLine(eo);
>         miobjeto.run();
>     }
>     catch(Exception e)
>     {
>           out.println(e.getMessage());
> 
>     }
>           out.println("</html>");
>   }
>   /**Limpiar recursos*/
>   public void destroy() {
>   }
> }
> 
Received on Tuesday, 13 March 2001 11:12:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:08 GMT