Return-Path: Delivered-To: apmail-xml-fop-user-archive@xml.apache.org Received: (qmail 18337 invoked by uid 500); 2 May 2003 03:34:23 -0000 Mailing-List: contact fop-user-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: fop-user@xml.apache.org Delivered-To: mailing list fop-user@xml.apache.org Received: (qmail 18318 invoked from network); 2 May 2003 03:34:23 -0000 Received: from io.mds.rmit.edu.au (131.170.70.10) by daedalus.apache.org with SMTP; 2 May 2003 03:34:23 -0000 Received: by io.mds.rmit.edu.au (Postfix, from userid 137) id 7187B49B63; Fri, 2 May 2003 13:34:30 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by io.mds.rmit.edu.au (Postfix) with SMTP id 5FA0E46EED for ; Fri, 2 May 2003 13:34:30 +1000 (EST) Date: Fri, 2 May 2003 13:34:30 +1000 (EST) From: Ozhan Hassan To: fop-user@xml.apache.org Subject: Class Transformer not found In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, Hi hope I am sending this to the correct user mailing list. I am trying to write a simple application to read in an xml file and and xslt style sheet, then produce a PDF. Below is a snippet of the main code which does this: Driver driver = new Driver(); driver.setOutputStream(new FileOutputStream(outFileName)); Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO); MessageHandler.setScreenLogger(logger); driver.setLogger(logger); driver.setRenderer(Driver.RENDER_PDF); Transformer transformer = TransformerFactory.newInstance() .newTransformer(new StreamSource(INPUT_DIR + INPUT_XSLT)); transformer.transform(new InputSource(INPUT_DIR + INPUT_XML), new SAXResult(driver.getContentHandler())); However, I am getting the following error: [javac] /home/server/test/RendingEngines/FOP/source/fop-0.20.4/build/src/RenderingEngineXslt.java:60: Class Transformer not found. [javac] Transformer transformer = TransformerFactory.newInstance() [javac] ^ [javac] /home/server/test/RendingEngines/FOP/source/fop-0.20.4/build/src/RenderingEngineXslt.java:61: Class StreamSource not found. [javac] .newTransformer(new StreamSource(INPUT_DIR + INPUT_XSLT)); [javac] ^ [javac] 2 errors, 1 warning I have the xalan_2.3.1.jar file in my class path. I also import the following, where the 2nd import isn't found: import javax.xml.transform.TransformerFactory; import org.apache.xalan.xsltc.trax.TransformerFactoryImpl; Can anyone help me out? Regards, Ozhan --------------------------------------------------------------------- To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org For additional commands, e-mail: fop-user-help@xml.apache.org