Re: Having problems with config

"Szeak (Csaba)" <[email protected]>
Newsgroups gmane.text.xml.fop.user
Message-ID <[email protected]>
Hi, Theresa

I think, as Alex wrote, the config
file content need to be started with:

<?xml version="1.0"?>

So, it will be:

<?xml version="1.0"?>

<fop
version="1.0">

<!-- Strict user configuration -->

<strict-configuration>true</strict-configuration>

<!-- Strict FO validation -->

<strict-validation>true</strict-validation>

<!-- Base URL for resolving relative URLs -->

<base>./</base>

<!-- Font Base URL for resolving relative font URLs
-->

<font-base>./</font-base>

<!-- Source resolution in dpi (dots/pixels per inch) for
determining the size of pixels in SVG and bitmap images,
default: 72dpi -->

<source-resolution>72</source-resolution>

<!-- Target resolution in dpi (dots/pixels per inch) for
specifying the target resolution for generated bitmaps,
default: 72dpi -->

<target-resolution>72</target-resolution>

<!-- default page-height and page-width, in case

value is specified as auto -->

<default-page-settings height="11in" width="8.26in"/>

<!-- etc. etc..... -->

</fop>

Csaba

2018. 11. 25. 13:01 keltezéssel,
Theresa Forster írta:

This
file is copied almost directly from the official FOP example

https://xmlgraphics.apache.org/fop/0.95/configuration.html

<fop
version="1.0">

<!-- Strict user configuration -->

<strict-configuration>true</strict-configuration>

<!-- Strict FO validation -->

<strict-validation>true</strict-validation>

<!-- Base URL for resolving relative URLs -->

<base>./</base>

<!-- Font Base URL for resolving relative font URLs
-->

<font-base>./</font-base>

<!-- Source resolution in dpi (dots/pixels per inch) for
determining the size of pixels in SVG and bitmap images,
default: 72dpi -->

<source-resolution>72</source-resolution>

<!-- Target resolution in dpi (dots/pixels per inch) for
specifying the target resolution for generated bitmaps,
default: 72dpi -->

<target-resolution>72</target-resolution>

<!-- default page-height and page-width, in case

value is specified as auto -->

<default-page-settings height="11in" width="8.26in"/>

<!-- etc. etc..... -->

</fop>

Theresa

From: Alexios Giotis
[ mailto:[email protected] ]

Sent: 22 November 2018 07:57

To: [email protected]

Subject: Re: Having problems with config

Hi Theresa,

The config is XML, line 1 should be:

<?xml version="1.0"?>

HTH,

Alex

On 21 Nov 2018, at 13:29, Theresa
Forster <[email protected] >
wrote:

Hiya
Guys,

After
a long time I am trying to get FOP working locally
with a java app (embedded)

org.xml.sax.SAXException:
Not allowed to define mixed content in the element
fop at null:1:20

This
is the error I am getting on trying to load the
config.

<fop version="1.0">

<!-- Strict user
configuration -->

<strict-configuration>true</strict-configuration>

<!-- Strict FO validation
-->

<strict-validation>true</strict-validation>

<!-- Base URL for
resolving relative URLs -->

<base>./</base>

<!-- Font Base URL for
resolving relative font URLs -->

<font-base>./</font-base>

<!-- Source resolution in
dpi (dots/pixels per inch) for determining the
size of pixels in SVG and bitmap images, default:
72dpi -->

<source-resolution>96</source-resolution>

<!-- Target resolution in
dpi (dots/pixels per inch) for specifying the
target resolution for generated bitmaps, default:
72dpi -->

<target-resolution>96</target-resolution>

And
its crashing on line 1….

Any
suggestions?

Theresa
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.