You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Alenka Skrbinek <al...@alcad.si> on 2001/06/18 10:42:44 UTC
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"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
........
</fo:root>
Is this OK?
Thanks!
Re: Problems with OS390
Posted by Martin Roob <ma...@objekt-management.de>.
Hello,
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 -----
From: Alenka Skrbinek
To: fop-dev@xml.apache.org
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"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
........
</fo:root>
Is this OK?
Thanks!
Re: Problems with OS390
Posted by Petr Zeman <Pe...@jlabs.cz>.
Hi,
I thing, you have to write
-------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="xxxx">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
</fo:root>
</xsl:template>
</xsl:stylesheet>
-------------------------------------------------------------------
Petr Zeman
----- Original Message -----
From: Alenka Skrbinek
To: fop-dev@xml.apache.org
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"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
........
</fo:root>
Is this OK?
Thanks!