HI,
I have generated the foo.fo file [xsl+xml->fo],When try to generate the
PDF file with the command <Fop foo.fo jp.pdf >/<Fop -fo foo.fo -pdf jp.pdf
> getting below error.
Please help to resove the same.
C:\Documents and Settings\jaiprakash.pande\Desktop\fop-0.95>Fop foo.fo
jp.pdf
[Fatal Error] foo.fo:1:1: Content is not allowed in prolog.
Feb 24, 2010 8:00:46 PM org.apache.fop.cli.Main startFOP
SEVERE: Exception
javax.xml.transform.TransformerException: org.xml.sax.SAXParseException:
Content
is not allowed in prolog.
at
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125)
at org.apache.fop.cli.Main.startFOP(Main.java:166)
at org.apache.fop.cli.Main.main(Main.java:197)
---------
javax.xml.transform.TransformerException: org.xml.sax.SAXParseException:
Content
is not allowed in prolog.
at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
ormerIdentityImpl.java:469)
at
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:214)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125)
at org.apache.fop.cli.Main.startFOP(Main.java:166)
at org.apache.fop.cli.Main.main(Main.java:197)
Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Sour
ce)
at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
ormerIdentityImpl.java:452)
Also ,Please find the foo.fo file fopr the same.
Georg Datterl
<gdatt...@geneon.
de> To
"[email protected]"
02/24/2010 05:41 <[email protected]>
PM cc
Subject
Please respond to AW: AW: PDF reprot with improper
fop-us...@xmlgrap align data
hics.apache.org
Hi jaiprakash,
It's not necessary for you to generate a pdf, but it's necessary for you to
get better answers here, since this list deals mainly with fo->pdf, not
xsl+xml->fo.
Regards,
Georg Datterl
------ Kontakt ------
Georg Datterl
Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg
HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert
Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20
www.geneon.de
Weitere Mitglieder der Willmy MediaGroup:
IRS Integrated Realization Services GmbH: www.irs-nbg.de
Willmy PrintMedia GmbH: www.willmy.de
Willmy Consult & Content GmbH: www.willmycc.de
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]]
Gesendet: Mittwoch, 24. Februar 2010 11:32
An: [email protected]
Betreff: Re: AW: PDF reprot with improper align data
Hi,
For the old FOP 0.20 version ,we are able to genrate pdf report this XML
+ XSL couple only without ant XSl:FO file and is coming correctlly.
Is it necessary to feed XSL-FO file for FOP 0.95 ?
philippe voncken
<m...@philippevon
cken.com> To
[email protected]
02/23/2010 09:23 cc
PM
Subject
Re: AW: PDF reprot with improper
Please respond to align data
fop-us...@xmlgrap
hics.apache.org
Hi guys,
to transform easly your xml source, you can also uses xsltop or Xml Copy
Editor, it's are under GNU GPL license.
regards,
Philippe
2010/2/23 Pascal Sancho <[email protected]>
Hi Jaiprakash,
As Georg said, the most useful on this list is to provide XSL-FO file,
rather than XML + XSL couple.
You can easily do it by invoking FOP with the -foout option:
Fop -xml foo.xml -xsl foo.xsl -foout foo.fo
From that point, you can use the same source XSL-FO file to feed either
FOP 0.20.0, or FOP 0.95.
Note that FOP distributions comes with different versions of Xalan,
depending on FOP version released; in certain cases old Xalan versions
can cause some troubles, so the same Xalan for the 2 FOPs is a good
start.
At this stage, if the 2 ouputs are differents, you can easily find the
lines that have to be tweaked, directly in you XSL-FO file.
Once the result make you happy, you can then report changes to your XSLT.
During this process, we can help you in resolving issues that could
block you, but we *need* XSL-FO.
HTH,
Pascal
[email protected] a écrit :
> Hi,
> Please find the xml file for the same along with the genrated pdf
output
> .The same below outputted report is working fine in fop 0.20 version
but
> after migration vertical alignment issue is coming.
> (See attached file: IntellectReport.xsl)(See attached file:
> IntellectReport.xml)
>
> PDF output FOR FOP 0.95 version
> (Embedded image moved to file: pic01200.jpg)
>
>
> EXPECTED OUTPUT:PDF FOR THE VERSION FOP 0.20
>
> (Embedded image moved to file: pic26058.jpg)
>
> Georg Datterl
> <gdatt...@geneon.
> de>
>
> Hello jaiprakash,
>
> Your XSL file doesn't help a lot here. Can you:
> * take your XML file and transform it so you get a fo file
> * cut the irrelevant parts out so it only contains the parts you want
> aligned
> * post this shortened fo file
> * tell us which parts you want aligned with which (horizontally?
> vertically?)
> * and tell us which fop version you use
>
> Thanks.
>
> Georg Datterl
>
> -----Ursprüngliche Nachricht-----
> Von: [email protected] [mailto:
[email protected]]
>
> Hi,
>
> I am unable to generate properly align data in pdf report.so what
changes
> should i make in xsl file for correct alignment od data in pdf?
> here is my xsl file .Please help for the same.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
This e-Mail may contain proprietary and confidential information and is
sent for the intended recipient(s) only. If by an addressing or
transmission error this mail has been misdirected to you, you are requested
to delete this mail immediately. You are also hereby notified that any use,
any form of reproduction, dissemination, copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its
attachment other than by its intended recipient/s is strictly prohibited.
Visit us at http://www.polaris.co.in
---------------------------------------------------------------------
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]
This e-Mail may contain proprietary and confidential information and is sent
for the intended recipient(s) only. If by an addressing or transmission error
this mail has been misdirected to you, you are requested to delete this mail
immediately. You are also hereby notified that any use, any form of
reproduction, dissemination, copying, disclosure, modification, distribution
and/or publication of this e-mail message, contents or its attachment other
than by its intended recipient/s is strictly prohibited.
Visit us at http://www.polaris.co.in
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]