File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes XSLT vs JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "XSLT vs JSP" Watch "XSLT vs JSP" New topic
Author

XSLT vs JSP

Mathew Kuruvilla
Ranch Hand

Joined: Nov 27, 2001
Posts: 135
I don't know anything about XSLT, but I do know a little bit about JSP.
I need to use data given as input in the XML format and generate 1 or more graphs based on user request and the data from the input. The input is from a file and all the java code resides in a servlet.
1) Which technologies are best for this?
2) Which books are best for this?
Thanks.
Mathew
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12681
    
    5
If you were just re-formatting the data text, XSLT would do the trick, but since you have to do some computation, stick with java for XML processing.
Your first decision is whether to use DOM style parsing or SAX style, so the first question is, how big is the data? are we talking megabytes or kilobytes here?
I would certainly develop a "JavaBeans" style component(s) to read the data and generate the graphs so you can test it outside the servlet envrionment.
There are LOTS of XML & Java books, typical servlets books now include chapters on XML since it has become so important.
Bill


Java Resources at www.wbrogden.com
Mathew Kuruvilla
Ranch Hand

Joined: Nov 27, 2001
Posts: 135
Currently, the data is only kilobytes of data. I doubt if it will go to megabytes of data.
What about Scalable Vector Graphics SVG (Stylesheets) vs. JSP. I am only getting my feet wet in XML, so please excuse dumb questions. :-)
Mathew
Greg Whelan
Ranch Hand

Joined: May 18, 2000
Posts: 52
Depending upon the type of graphs you're trying to generate you might find MonkeyBoyGraph useful:
http://monkeygraph.sourceforge.net/
Regarding books, I found Brett McLaughlin's "Java & XML" (O'Reilly) book to be a fantastic intro.
 
 
subject: XSLT vs JSP
 
Similar Threads
DOM
Incrementing 1 Day in XSLT
XSLT as a JSP's murderer
Execting Java methods from XSLT
XSLT vs. JSP