Try this.
// ---
// 1. Get a Source for XML document
// ---
// a) from string
Source strSource = new StreamSource(new StringReader(xmlData));
// ---
// 2. Get stylesheet transformer
// ---
// from file, see above examples for other types of XSL input
I use 0.20.1 also with SAX events. I had to add this to get rid of the
null pointer:
//Hack fix for FOP bug. Might be unnecessary in FOP 0.20.3.
StreamRenderer x = new StreamRenderer(outputStream,
pdfDriver.getRenderer());
:56 PM
To: [EMAIL PROTECTED]
Subject:Re: Using Xalan Transformer with FOP Driver problem
I use 0.20.1 also with SAX events. I had to add this to get rid of the
null pointer:
//Hack fix for FOP bug. Might be unnecessary in FOP 0.20.3.
StreamRenderer x = new