aspose file tools *
The moose likes XML and Related Technologies and the fly likes Transforming XML with XSL 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 "Transforming XML with XSL" Watch "Transforming XML with XSL" New topic
Author

Transforming XML with XSL

ajronald
Greenhorn

Joined: Oct 05, 2000
Posts: 3
I am using JSP for converting the result set to an XML file...but can any one tell me how to include an xsl style sheet to carryout the transformation, both on the Server and the Client?
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
Server side transformation is the best way to generate the renderable format. Simply apply the stylesheet to your XML on the server and return the resulting HTML( or any other format of your choice ) to the client.
This way the client gets only the HTML, completely oblivious to how the HTML was generated. Moreover, you don't have to rely on the browser to do the transformation for you. I have seen some implementations where the client gets the XML document that has a reference to the stylesheet. Depending on a browser's capability to transform XML is a big no! no!
Hope that helps,
------------------
Ajith Kallambella M.
Sun Certified Programmer for the Java�2 Platform.
IBM Certified Developer - XML and Related Technologies, V1.


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
Your name "ajronald" does not comply with the JavaRanch naming policy. Please choose one that meets the requirements.
Without a proper name you will not qualify for the giveaway.
Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Transforming XML with XSL