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!!!
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