You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Müller, Markus" <ma...@sdm.de> on 2002/11/11 11:05:46 UTC
Problem reading userconfig.xml on UNIX
Hi there,
I have trouble using the userconfig.xml on UNIX. FOP generates these
messages:
-- some lines omitted --
[DEBUG] OPTIONS
[DEBUG] user configuration file: /u/BSK27/fop0.20.4/conf/userconfig.xml
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[DEBUG] reading user configuration file
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[ERROR] Could not load user configuration file
/u/BSK27/fop0.20.4/conf/userconfig.xml - error: Content is not allowed in
prolog.
[ERROR] using default values
-- snip --
Who has problems with my config file? SAX2? FOP? What's wrong? The
userconfig.xml looks like this (and works fine on Windows):
-- begin --
<!--<!DOCTYPE configuration SYSTEM "config.dtd">-->
<!--
this file contains templates which allow an user easy
configuration of Fop. Actually normally you don't need this
configuration
file, but if you need to change configuration, you should
always use this file and *not* config.xml.
Usage: java org.apache.fop.apps.Fop -c userconfig.xml -fo fo-file -pdf
pdf-file
-->
-- ... --
Suggestions welcome...
Markus
Re: Problem reading userconfig.xml on UNIX
Posted by Oleg Tkachenko <ol...@multiconn.com>.
Müller, Markus wrote:
> I have trouble using the userconfig.xml on UNIX. FOP generates these
> messages:
>
> [DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
> [ERROR] Could not load user configuration file
> /u/BSK27/fop0.20.4/conf/userconfig.xml - error: Content is not allowed in
> prolog.
>
> Who has problems with my config file? SAX2? FOP? What's wrong?
That's xml parser, particularly xerces as can be seen in debug. Somehow xerces
found character data during prolog parsing (only xml declaration, doctype
declaration, comments, pi's and whitespace allowed in a prolog, which is all
stuff before root element start tag). Usually that means encoding problem.
Have you changed userconfig.xml encoding? Try to define encoding explicitly in
the xml declaration.
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel