File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes HELP!!! XML,XSLT!!!!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "HELP!!! XML,XSLT!!!!!!!" Watch "HELP!!! XML,XSLT!!!!!!!" New topic

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

neha gowda

Joined: Feb 04, 2004
Posts: 23
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.
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
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

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: HELP!!! XML,XSLT!!!!!!!
It's not a secret anymore!