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
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
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
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 > > > > >
White space in FO causes PDF TOC problem
I'm using FOP 2.3 with the DITA Open Toolkit. The tags in DITA topics are used in the table of contents in a PDF. Each table of contents line is justified like this in the PDF: (left margin)Intro to XYZ14(right margin) (left margin)Setting Up XYZ...18(right margin) Most lines line up neatly on the right margin, but a few do not go to the margin. The cause of a line that does not go all the way to the right margin is a tag with white space in it like this: Do This First This white space gets copied over to the XSL-FO produced by the DITA OT: height="150%"> Do This First keep-together.within-line="always" start-indent="-14pt"> color="black" leader-pattern="dots"/>And FOP renders this in the PDF like this, where the line does not go all the way to the right margin: (left margin)Do This First10 (right margin) (left margin)Intro to XYZ14(right margin) (left margin)Setting Up XYZ...18(right margin) When I remove the whitespace in the XSL-FO, the line renders correctly, all the way to the right margin. Both Antenna House and XEP render the line correctly, ignoring the extraneous whitespace. This seems like a FOP bug, is there a fix for this? Other than removing the whitespace? Thanks, Mark - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org