Willis, Matthew wrote:
I'm getting the following exception:
WARNING: Unknown formatting object
http://www.w3.org/1999/XSL/Transform^stylesheet
...
when running the following code snippet to set up an embedded FOP:
Driver fopDriver = new Driver(new InputSource(XSL_FO_FILE_PATH), new
FileOutputStream(OBI_PDF_PO_FILE_PATH));
You are feeding the style sheet as input to the formatter. This
can't work, the formatter will only take FO documents, which is
something different.
If you want to transform some input XML with the style sheet and
have the formatter work on the result of the transformation, see
http://xml.apache.org/fop/embedding.html#servlet-transform
Here are the versions I'm using for the various jars:
fop 0.18 DEV
That's darn old, you should upgrade. The code example above
probably won't work with this old FOP release.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]