--- Received from DIST.KUOS 777-2825                01-12-10 16.21


Hi.  the following is my code:

import org.w3c.dom.*;
import org.apache.xerces.parsers.*;

import java.io.*;
import java.io.File;
import java.lang.String;
import java.net.URL;

import org.apache.fop.apps.*;

import org.apache.fop.messaging.*;

import org.xml.sax.*;

public class XMLPDF
  public static void main(String[] args)
    File xmlf = new File("c:/jdk1.3.1/xslfoRef.xml");
    File xslf = new File("c:/jdk1.3.1/xml2pdf.xsl");
    File writefile = new File("shu.pdf");
    Driver driver = new Driver();
    InputHandler inputHandler = new XSLTInputHandler(xmlf, xslf);
    XMLReader parser = inputHandler.getParser();
    InputSource inputSource = inputHandler.getInputSource();
    driver.setOutputStream(new FileOutputStream("shu.pdf"));
    driver.render(parser, inputSource);



I got the following error message:

unreported exception org.apache.fop.apps.FOPException: must be
caught or declared to be thrown
  XMLReader parser = inputHandler.getParser();

it has the same error messgae for driver.setOUtputStream and

I have no idea what's wrong, plese kindly help.


To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to