possibly your problem is the encoding of the fo-File. If you transfer it form NT to OS390 in binary mode,
everything should be ok, but than you cannot read the file on OS390, because it is ASCII (better UTF-8) and OS390 wants to see EBCDIC.
If you transfer it as a text file, your ftp program or whatever you use should convert it to EBCDIC and you can look at it in a text editor. But than you have to manually change the encoding attribute of the file, because otherwise the XML parser assumes it is utf-8.
So try to change the fist line of the file to
<?xml version="1.0" encoding="ebcdic-cp-us"?>
(ebcdic-cp-us is an encoding that is supported by Xerces).
Martin Roob
----- Original Message -----
Sent: Monday, June 18, 2001 10:42 AM
Subject: Problems with OS390

I am trying to build .pdf from .fo file using Fop 0.18.1. I use the same .fo document on Win NT with JDK1.1.8 and it works. On OS390 I always get the same message: The root element is required in a well-formed document.
Here is a piece (first two lines) of my .fo document :
<?xml version="1.0" encoding="utf-8"?>
Is this OK?

Reply via email to