FOP [ERROR] null

2002-12-04 Thread Boris Rousseau




Hello,

Can I get any help on the following error message: [ERROR] null
All I could find is that my FO file is not valid, but as far as I can see 
it is...
Also when there is no FOP schema provided on the apache web site (the 
link
points to the faq).

Can I get an hold on this schema to validate my source ?

Regards,
Boris


embedding FOP in Java

2002-12-09 Thread Boris Rousseau



Hello,

I am using the following file embedding fop:
"import org.apache.fop.apps.Driver;import 
org.apache.fop.layout.Page;import org.apache.fop.apps.Version;import 
org.apache.fop.apps.XSLTInputHandler;import 
org.apache.fop.apps.InputHandler;import org.xml.sax.*;import 
org.apache.fop.messaging.MessageHandler;import java.io.*;

//import org.apache.fop.apps.InputHandler;//import 
org.apache.fop.apps.XSLTInputHandler;

public class fop{

public void fop(String xmlFile, String xslFile, String outFile){

Driver driver = new 
Driver();driver.setRenderer(Driver.RENDER_PDF);InputHandler 
inputHandler = new XSLTInputHandler(xmlFile, xslFile);XMLReader parser 
= inputHandler.getParser();driver.setOutputStream(new 
FileOutputStream(outFile));driver.render(parser, 
inputHandler.getInputSource());}}"

Unfortunately when I compile it, I get the following error:
fop.java:19: cannot resolve symbolsymbol : constructor 
XSLTInputHandler (java.lang.String,java.lang.String)location: class 
org.apache.fop.apps.XSLTInputHandler 
InputHandler inputHandler = new XSLTInputHandler(xmlFile, 
xslFile); 
^1 error

Can you help me ?

I would also like to embed the FOP as a Web Service.
Can you give me any pointers to tutorials on this ?

Regards,
Boris


embedding FOP

2002-12-11 Thread Boris Rousseau



All,

Sorry about the newby question, but I have some trouble with the 
FOPServlet.
I managed to build the .war. However when I put it under my \Tomcat 
4.1\webapps directory
and I start Tomcat I get the following error in the "Start Tomcat" command 
prompt:
"11-Dec-2002 12:18:57 org.apache.commons.digester.Digester errorSEVERE: 
Parse Error at line 21 column 11: The content of element type "web-app"must 
match 
"(icon?,display-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*)"." 

...
Can you point me out what is wrong ?

Regards,
Boris