
October 4th, 2004, 03:02 PM
|
|
Registered User
|
|
Join Date: Oct 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Help: XSL instead of JSP?
I have a web app built with JSP and a controller servlet (all from scratch, no struts, JSF or anything). I have been asked by my employer to evaluate XSL as a replacement technology for our JSP web app.
I looked at a couple simple XSL examples on w3.org that show tables and stuff and it's impressive. What I need to know is, is it best practice to replace all my JSP stuff with XSL stuff? For example, my main.jsp page is a table with cells for header, menu, body, footer -- and body is a <jsp:include> of a variable set by my ControllerServlet which changes with each command.
Do I replace all this layout stuff with XSL, or would it be smarter to leave the JSP in place and insert XSL stuff in place of my <jsp:include>s?
The following is psuedo-code, but can I even do something like this in XSL?:
<table>
<tr> <xsl:include header.xsl> </tr>
<tr> <xsl:include menu.xsl> </tr>
<tr> <xsl:include context.xsl> </tr>
</table>
If anyone can suggest some ideas and/or links I'd greatly appreciate it!
Jed
|