We have seen many problems with those V1.x xsl-fo stylesheets.
(Who is responsible for their development?) Every time I
look into a customer call about them, I find invalid XSLT
in those stylesheets.
One thing to try is to do a File -> Compose -> Using XSL
and tell it to use the .xsl for the stylesheet. (By
default, the compose dialog will try to put the result
into a .htm file which doesn't really make sense; I usually
change the output file name from XXX.htm to XXX-fo.xml,
but that doesn't really matter.)
This will just do an XSLT run on your input document using
the XSL-FO stylesheets. If you get errors at this stage,
you know there is something wrong with the supplied XSL-FO
stylesheets.
If you still get nothing more informative than the java
endDocument error, that usually means that your XSL stylesheet
either is referencing a namespace prefix that is undeclared
or it is ill-formed in some other way. Hopefully, you'll
get some other message with a line number on it and you can
narrow down where the problem lies.
paul