RE: Problem with .fo file

2003-12-11 Thread frederic . kieffer
Thanks for your quick answer.

As I was thinking Crimson was the cause of this issue, I changed the fo:root
tag of the .fo file,
and the parser was not confused by the document anymore.

Frédéric Kieffer


-Message d'origine-
De: J.Pietschmann [mailto:[EMAIL PROTECTED]
Date: mercredi 10 décembre 2003 23:27
À: [EMAIL PROTECTED]
Objet: Re: Problem with .fo file


[EMAIL PROTECTED] wrote:
 I'm able to convert it to PDF when using the command line, 
 but when I try to print it (using awt) thanks to embedded code, I have
this
 error :  
...
 [INFO,Default] Using org.apache.crimson.parser.XMLReaderImpl as SAX2
Parser
...
 [ERROR,Default] org.apache.fop.apps.FOPException: Error while attempting
to
 print document, root cause : Document root element is missing.

The FO document has a BOM at the start. Some old versions (or even all)
of the Crimson parser are confused by this. What JVM/run time environment
are you using? Check whether you can enforce using a recent Xerces release
as XML parser (there are plenty of instructions for everything on the net).

J.Pietschmann



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with .fo file

2003-12-10 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
I'm able to convert it to PDF when using the command line, 
but when I try to print it (using awt) thanks to embedded code, I have this
error :  
...
[INFO,Default] Using org.apache.crimson.parser.XMLReaderImpl as SAX2 Parser
...
[ERROR,Default] org.apache.fop.apps.FOPException: Error while attempting to
print document, root cause : Document root element is missing.
The FO document has a BOM at the start. Some old versions (or even all)
of the Crimson parser are confused by this. What JVM/run time environment
are you using? Check whether you can enforce using a recent Xerces release
as XML parser (there are plenty of instructions for everything on the net).
J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem creating FO-File using ExampleXML2FO.java from the FOP-Package

2003-04-04 Thread Jeremias Maerki
Google finds:

 org.apache.xml.utils.WrappedRuntimeException: The output format must
 have a '{http://xml.apache.org/xslt}content-handler' property!
 
 This error is usually caused by the Xalan included with JDK 1.4. Make
 sure xalan.jar is placed in tomcatDir/common/endorsed (if you run into
 this error and there is no such directory, we advise you to upgrade to a
 newer version of Tomcat). 


I hope that helps.

On 04.04.2003 15:45:15 Amin Schoeib wrote:
 I have a problem creating a FO-File using the ExampleXML2FO.java from
 the FOP-Package.
 I use Jbuilder8 (JDK 1.4.1).
 I heard that this is a problem with Tomcat and JDK 1.4.1.
 What can I do to solve this problem??
 
 This is the error I become:
 
 org.apache.xml.utils.WrappedRuntimeException: The output format must
 have a '{http://xml.apache.org/xslt}content-handler' property!at
 org.apache.xalan.serialize.SerializerFactory.getSerializer(SerializerFac
 tory.java:142)at


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]