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


Mathew Kuruvilla
Ranch Hand

Joined: Nov 27, 2001
Posts: 141
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?
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
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.
Mathew Kuruvilla
Ranch Hand

Joined: Nov 27, 2001
Posts: 141
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. :-)
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:
Regarding books, I found Brett McLaughlin's "Java & XML" (O'Reilly) book to be a fantastic intro.
I agree. Here's the link:
subject: XSLT vs JSP
It's not a secret anymore!