GeeCON Prague 2014*
The moose likes XML and Related Technologies and the fly likes xml mathml pdf FOP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xml mathml pdf FOP" Watch "xml mathml pdf FOP" New topic
Author

xml mathml pdf FOP

raul manzano
Greenhorn

Joined: Oct 05, 2002
Posts: 13
hello,
here it's a big quest....
my name is raul, i'm spanish student that is trying to make a website that is based on xml, jsp,servlets(tomcat). It must be able to transfor xml in some formats.Some of the source is in mathml
that i have to transform in svg,and all the xml documents (that are dinamic generated ) must to be send to the browser in html, wml or pdf.
My problens are:
1.-I have all implementes in jsp and servlets pages,so i can't use cocoon 2.0 that i think
it's able to do all this thins.
Any one knows a way to use cocoon 2.0 like a servlet to call from my jsp pages?examples?
Any jar and a way to use it?
2.-Any one knows how i can use FOP in a jsp with dinamic data (without stores files)?examples?any similar solution?
2.-Any one knows how i can transform mathml to svg in a jsp?

Lots of thanks to all
I'm desesperated,please help me!!!
Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065
Hi Raul,
Sorry, but your name doesn't comply with our official policy on registered names. Both first and last name are required. Please, take a moment and change your publicly displayed name.
Other (properly registered) participants, please, help Raul


Uncontrolled vocabularies
"I try my best to make *all* my posts nice, even when I feel upset" -- Philippe Maquet
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Originally posted by manzano:
My problens are:
1.-I have all implementes in jsp and servlets pages,so i can't use cocoon 2.0 that i think
it's able to do all this thins.
Any one knows a way to use cocoon 2.0 like a servlet to call from my jsp pages?examples?
Any jar and a way to use it?

Actually Cocoon is complete package of fop,xalan,xerces,xsv... and lot of excellent jars " - simply a xml framework.
I believe you can achieve your task without using cocoon,that is by downloading the specific jar files from apache seperately.


2.-Any one knows how i can use FOP in a jsp with dinamic data (without stores files)?examples?any similar solution?

Try to download the FOP processor from apache site http://xml.apache.org/fop/index.html it has an servlet demo in examples folder.This servlet(FopServlet.java) call the FOP processor by passing
1. input as xml,xsl file - output PDF file
2. input as fo file - output PDF file.
You can redesign to suits JSP,but better use serlvet since its has lot of java code.
you can also redesing the servlet code to suits SVG output.Look at the FOP api by downloading source file of FOP.

2.-Any one knows how i can transform mathml to svg in a jsp?

Mathml is another XML,u need a XSLT to transform it into FO provided u know the mapping between mathml and svg,then u can use servlet or jsp to convert it into SVG using FOP jar file.Or else u direcltly convert the mathml to svg,ur client should have the Adobe SVG viewer installed on his/her system.
Regards
Balaji


Spritle Software Blogs
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Originally posted by Mapraputa Is:
Other (properly registered) participants, please, help Raul

Map! now-a-days u r not actively replying in this forum.A personal complaint from your fan.
 
GeeCON Prague 2014
 
subject: xml mathml pdf FOP