Wednesday, June 29, 2011

Transform XML file in HTML with XSLT in JSP

Transform XML file in HTML with XSLT in JSP

How to transform xml file in html with xslt in J2EE, JSP
----------------------------------------------------------
I have used SAXON XSLT and XQuery Processor library http://saxon.sourceforge.net/
1)saxon9ee.jar 2)saxon9ee-qc.jar 3)saxon9-sql.jar

The Latest version you can download from http://prdownloads.sourceforge.net/saxon/saxon6-5-5.zip
or from here http://sourceforge.net/projects/saxon/

There are 3 xml files for testing purpose
1) result.xml having result information.
2) result_notfound.xml having no any result information.
3) TestSearchResult.xml having partial result information.

you can change xml file to see different html result.

In the xsl file I have used some basic function like count(),position(),and images also showing.

*To open this project use MyEclipse6.0 or later.

Download here xml to html entire code





No comments:

Post a Comment