Our designer did all transformations using Fop via command line...
so the transformation should be working fine...
seems like an error in the code?
// ADDED XML VOUCHER GENERATION
XMLGenerator xml = new XMLGenerator();
Document voucher = xml.generateVoucher( voucherGener );
Document xsl = xml.getXSL();
// XSL Formatting.
Driver driver = new Driver();
driver.setRenderer( Driver.RENDER_PDF );
//driver.setInputSource( new DocumentInputSource() );
driver.setOutputStream( outStream );
//Let's set the input
Transformer trans =
TransformerFactory.newInstance().newTransformer( new DOMSource( xsl ) );
trans.transform( new DOMSource( voucher ), new
AXResult( driver.getContentHandler() ));
//Let's set all loggin stuff
Logger log = null;
Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
PatternFormatter formatter = new
PatternFormatter("[%{priority}]: %{message}\n%{throwable}");
LogTarget target = null;
target = new StreamTarget(System.err, formatter);
hierarchy.setDefaultLogTarget(target);
log = hierarchy.getLoggerFor("fop");
log.setPriority(Priority.DEBUG);
driver.setLogger(log);
//Let's try another thing
//XSLTInputHandler input = new XSLTInputHandler(new
File(xmlParam), new File(xslParam));
//Let's render the Formatting tree
driver.render( voucher );
any help would be appreciated
----- Original Message -----
From: "Ralf Steppacher" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 31, 2002 1:44 PM
Subject: Re: wrong namespace??
> I�ve copied your xsl and tried doing a transformation...
>
> unfortunately i�m still getting the same error...
Have you tried to do the transformation on the command line?
How does the code you use look like?
Ralf