You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Laurent Vaills <la...@laposte.net> on 2001/11/08 10:28:03 UTC

interaction between FOP and Xalan

Hello.

I am using FOP 0.20.1 and Xalan-J 2.2.0_D11, and xerces 1.4.3.
I have the same errors if I use the xalan-2.0.0.jar distributed with Fop.

I am currently parsing an xml document to get a DOM. I put this DOM to
xalan and it transforms it, with a correct stylsheet, to a DOMResult
which contains the FO DOM tree, if I am correct.
Finally, I want to produce a PDF file from this FO DOM but I have got a
NullPointerException, which is really surprising because I am able to
serialize perfectly the FO DOM with a xalan serializer.

Attached to the mail is an example that shows my problem.

Do you think the problem comes from Xalan, which builds incorrectly the
DOMResult or FOP that doesn't walk correctly through the FO DOM built by
the DOMResult ?

If you have any ideas...don't worry if not.
I hope it is clear. If not, don't hesitate to ask more details.

Laurent