RE: Having problems with config
I finally found the issue with this. It is a little silly In the config file there was an embedded comment But this was being classed as mixed content – talk about sax being a pain. Theresa From: Theresa Forster [mailto:theresaja...@minuet-uk.com] Sent: 25 November 2018 12:02 To: fop-users@xmlgraphics.apache.org Subject: RE: Having problems with config This file is copied almost directly from the official FOP example https://xmlgraphics.apache.org/fop/0.95/configuration.html true true ./ ./ 72 72 Theresa From: Alexios Giotis [mailto:alex.gio...@gmail.com] Sent: 22 November 2018 07:57 To: fop-users@xmlgraphics.apache.org <mailto:fop-users@xmlgraphics.apache.org> Subject: Re: Having problems with config Hi Theresa, The config is XML, line 1 should be: HTH, Alex On 21 Nov 2018, at 13:29, Theresa Forster mailto:theresaja...@minuet-uk.com> > 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. true true ./ ./ 96 96 And its crashing on line 1…. Any suggestions? Theresa
Re: Having problems with config
Hi, Theresa I think, as Alex wrote, the config file content need to be started with: So, it will be: true true ./ ./ 72 72 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 true true ./ ./ 72 72 Theresa From: Alexios Giotis [mailto:alex.gio...@gmail.com] Sent: 22 November 2018 07:57 To: fop-users@xmlgraphics.apache.org 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 <theresaja...@minuet-uk.com> 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. version="1.0"> true true ./ ./ 96 96 And its crashing on line 1…. Any suggestions? Theresa - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Having problems with config
I am unable to answer to your question without testing your file, but given the error, it seems that some text has been pasted into elements where is not expected. Maybe the copy and paste from HTML generated some extraneous artifact. My advice is to rewriting it from scratch. There is a sample config file in fop sources, use it as last test. You can download it from Apache SVN: http://svn.apache.org/viewvc/xmlgraphics/fop/tags/fop-1_1/conf/fop.xconf?view=co Best regards. Il giorno dom 25 nov 2018 alle ore 13:01 Theresa Forster < theresaja...@minuet-uk.com> ha scritto: > This file is copied almost directly from the official FOP example > > https://xmlgraphics.apache.org/fop/0.95/configuration.html > > > > >
RE: Having problems with config
This file is copied almost directly from the official FOP example https://xmlgraphics.apache.org/fop/0.95/configuration.html true true ./ ./ 72 72 Theresa From: Alexios Giotis [mailto:alex.gio...@gmail.com] Sent: 22 November 2018 07:57 To: fop-users@xmlgraphics.apache.org Subject: Re: Having problems with config Hi Theresa, The config is XML, line 1 should be: HTH, Alex On 21 Nov 2018, at 13:29, Theresa Forster mailto:theresaja...@minuet-uk.com> > 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. true true ./ ./ 96 96 And its crashing on line 1…. Any suggestions? Theresa
RE: Having problems with config
Its running via intellij and reports as UTF-8 encoding, the file was pasted in via copy paste from the sample from FOP. Its running on a windows machine not changing platform so not sure whats going on? The lines are ending CRLF but why would SAX have problems with that? Theresa From: Luca Bellonda [mailto:lbello...@gmail.com] Sent: 25 November 2018 11:18 To: fop-users@xmlgraphics.apache.org Subject: Re: Having problems with config Hello, this error is usually reported when there is some text between the elements and it is not expected. It can be caused also from CR/LF translations from Windows to Unix. Try rewriting your file from scratch on target system in a new file. Try to paste the only elements without comments or blank lines. Best regards. Il giorno mer 21 nov 2018 alle ore 12:29 Theresa Forster mailto:theresaja...@minuet-uk.com> > ha scritto: 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. true true ./ ./ 96 96 And its crashing on line 1…. Any suggestions? Theresa
Re: Having problems with config
Hello, this error is usually reported when there is some text between the elements and it is not expected. It can be caused also from CR/LF translations from Windows to Unix. Try rewriting your file from scratch on target system in a new file. Try to paste the only elements without comments or blank lines. Best regards. Il giorno mer 21 nov 2018 alle ore 12:29 Theresa Forster < theresaja...@minuet-uk.com> ha scritto: > 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. > > > > > > > true > > > true > > > ./ > > > ./ > > > 96 > > 96 > > > > And its crashing on line 1…. > > > > Any suggestions? > > > > Theresa >
Re: Having problems with config
Hi Theresa, The config is XML, line 1 should be: HTH, Alex > On 21 Nov 2018, at 13:29, Theresa Forster 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. > > > > > true > > > true > > > ./ > > > ./ > > > 96 > > 96 > > And its crashing on line 1…. > > Any suggestions? > > Theresa