• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HELP!!! XML,XSLT!!!!!!!

 
neha gowda
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I'm a java programmer but new to XML,XSLT.
Now I'v to use XML for the presentation layer instead of JSP, as we use to do in our projects.
I have basic knowledge of XML, XSL.
Please help me how shd I begin to present the GUI in XML format.
for example, I have to fetch some information from database(usind DAO) and present it in xml format.
regards,
Neha
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The idea is that you don't present the GUI in XML format. The XML should ideally contain only data -- the XSL stylesheet includes the knowledge of what kind of HTML document to transform the XML into.
A typical Servlet/XSL architecture looks like the following:
1) A servlet receives an HTTP request
2) A controller class of some sort performs its magic and returns an XML document
3) The servlet (or a servlet filter) runs the XML through XSL transformation
4) The browser receives the HTTP response containing an HTML page
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic