Strange results with XSLTransform and XSL-FO

Hi,I get a wrong fo file when transforming XML data with a java agent.

When I try to perform the conversion to PDF using FOP, I get following log:

C:\fo>java org.apache.fop.apps.Fop t.fo t.pdf

[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser

[INFO] FOP 0.20.5

[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser

[INFO] building formatting object tree

[INFO] setting up fonts

[Fatal Error] t.fo:2:10: The prefix “fo” for element “fo:root” is not bound.

[ERROR] The prefix “fo” for element “fo:root” is not bound.

I’ve seen Domino creates the fo file with:

“fo:root” when I defined it as "<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">" !!!

If I manually add the missing definition, and try again, I find out that some tags are wrong:

[Fatal Error] t.fo:1:464: The element type “fo:simple-page-master” must be termi

nated by the matching end-tag “</fo:simple-page-master>”.

[ERROR] The element type “fo:simple-page-master” must be terminated by the matching end-tag “</fo:simple-page-master>”.

Domino created the tag: “” when it had to be “</fo:simple-page-master>”…

Note: with WSAD the transformation is OK.

Little bit strange, doesn’t it?

Thanks,

Sofia.