You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2011/05/24 09:49:37 UTC
DO NOT REPLY [Bug 51252] New: FOP with C++
https://issues.apache.org/bugzilla/show_bug.cgi?id=51252
Bug #: 51252
Summary: FOP with C++
Product: Fop
Version: all
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: general
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: vinod.pachpute@credentek.com
Classification: Unclassified
How to implement FOP with C++?
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 51252] FOP with C++
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51252
Mehdi Houshmand <me...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #3 from Mehdi Houshmand <me...@gmail.com> 2011-05-24 10:49:37 UTC ---
This isn't a bug, if you wish for such information you can either use the
fop-users mailing list:
<fo...@xmlgraphics.apache.org>
or more appropriate for this question, you can ask on the fop-dev mailing list:
<fo...@xmlgraphics.apache.org>.
As for how to answer your question, I'd recommend you post on one of those and
someone might be able to help. As far as I know, FOP doesn't have a C/C++ API,
but you can use the shell API to invoke FOP from the command line in C++.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 51252] FOP with C++
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51252
Glenn Adams <gl...@skynav.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #6 from Glenn Adams <gl...@skynav.com> 2012-04-01 13:43:00 UTC ---
batch transition to closed for remaining resolved bugs
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 51252] FOP with C++
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51252
--- Comment #4 from vinod <vi...@credentek.com> 2011-05-25 15:27:00 UTC ---
Thanks,I got the solution.
But,It is not accept stylesheet file from command line argument.
It gives error:
org.apache.fop.apps.FOPException: org.apache.fop.fo.ValidationException: First
element must be the fo:root formatting object. Found (Namespace URI: "", Local
Name: "head") instead. Please make sure you're producing a valid XSL-FO
document.
javax.xml.transform.TransformerException:
org.apache.fop.fo.ValidationException: First element must be the fo:root
formatting object. Found (Namespace URI: "", Local Name: "head") instead.
Please make sure you're producing a valid XSL-FO document.
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:302)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
at org.apache.fop.cli.Main.startFOP(Main.java:174)
at org.apache.fop.cli.Main.main(Main.java:205)
Caused by: javax.xml.transform.TransformerException:
org.apache.fop.fo.ValidationException: First element must be the fo:root
formatting object. Found (Namespace URI: "", Local Name: "head") instead.
Please make sure you're producing a valid XSL-FO document.
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1323)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2281)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1367)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262)
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299)
... 3 more
Caused by: org.apache.fop.fo.ValidationException: First element must be the
fo:root formatting object. Found (Namespace URI: "", Local Name: "head")
instead. Please make sure you're producing a valid XSL-FO document.
at
org.apache.fop.events.ValidationExceptionFactory.createException(ValidationExceptionFactory.java:38)
at
org.apache.fop.events.EventExceptionManager.throwException(EventExceptionManager.java:54)
at
org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:175)
at $Proxy0.invalidFORoot(Unknown Source)
at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:261)
at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171)
at
org.apache.xml.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.java:204)
at
org.apache.xml.serializer.ToSAXHandler.flushPending(ToSAXHandler.java:277)
at
org.apache.xml.serializer.ToXMLSAXHandler.startPrefixMapping(ToXMLSAXHandler.java:348)
at
org.apache.xml.serializer.ToXMLSAXHandler.startPrefixMapping(ToXMLSAXHandler.java:318)
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1315)
... 12 more
Please give me solution for this.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 51252] FOP with C++
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51252
--- Comment #1 from Mehdi Houshmand <me...@gmail.com> 2011-05-24 08:03:39 UTC ---
How exactly is this a bug?
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
Re: DO NOT REPLY [Bug 51252] FOP with C++
Posted by Craig Ringer <cr...@postnewspapers.com.au>.
On 24/05/2011 5:35 PM, bugzilla@apache.org wrote:
> https://issues.apache.org/bugzilla/show_bug.cgi?id=51252
>
> --- Comment #2 from vinod<vi...@credentek.com> 2011-05-24 09:35:43 UTC ---
> Dear Mehdi,
>
> I want to integrate this tool in c++.Please give any documentation/any
> information regarding with this.
http://en.wikipedia.org/wiki/Java_Native_Interface
http://tinyurl.com/3hxdutq
http://java.sun.com/docs/books/jni/
You'll have to use the Java Native Interface to call Fop from C++ if you
really want to "integrate" it. Trust me, you don't want to.
Retain your sanity and just invoke the fop command line tools via
system() / fork & exec / whatever, communicating with fop via temp
files, command line arguments and return values.
Another possibility if you need tighter integration is to write a Java
program that communicates with your C++ program over a socket, shared
memory segment, CORBA/SOAP calls, REST calls over http, or some other
IPC mechanism like D-BUS or COM+. Then you can define a set of Java
interfaces to expose to the C++ code that it can call over that IPC
system, and if necessary you can define C++ interfaces the Java code can
call too. This sounds like a lot of work, but will be much less painful
than JNI.
If you want more useful advice, please ask a more useful question. Be
specific. What do you want. Exactly. Why? To do what? In what
environment(s)? Etc.
--
Craig Ringer
Tech-related writing at http://soapyfrogs.blogspot.com/
DO NOT REPLY [Bug 51252] FOP with C++
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51252
--- Comment #2 from vinod <vi...@credentek.com> 2011-05-24 09:35:43 UTC ---
Dear Mehdi,
I want to integrate this tool in c++.Please give any documentation/any
information regarding with this.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 51252] FOP with C++
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51252
--- Comment #5 from Andreas L. Delmelle <ad...@apache.org> 2011-05-25 18:06:40 UTC ---
Similar to #51266. This is not a bug. For usage or development questions,
please use the appropriate mailing lists.
Thanks!
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.