I want to read XML file and generating its HTML using XSLT.
suppose the content of XML is
<Class>
<Student>
<basicInfo>
<Name>Adam<//Name>
<Rollno>004<//Rollno>
<webpage><a href="www.homepage.com">HOME </a> </webpage>
</basicInfo>
<course>
<courseName>English<courseName>
<courseTitle>LNG010<courseTitle>
</course>
</Student>
<Student>
<basicInfo>
<Name>John<//Name>
<Rollno>005<//Rollno>
<webpage> <a href="www.homepage.com">HOME </a> </webpage>
</basicInfo>
<course>
<courseName>FRENCH<courseName>
<courseTitle>LNG012<courseTitle>
</course></Student>
</Class>
I want to convert it into html in such a way that the first form will show the detailed information (include the hyperlink as hyperlink) of first student and if the user press "Next" button it should show the inforamtion about next student only. Plus if some one wants to search information about any specific stduent via his <name> then the query should return his complete <Student> tag information in html.
-
- Read about how logo jewelry can be used to reward and motivate employees.
-
Recent Posts
- The Methods That The IContact Service Could Help Assist In Website Promotion
- 3D Computer Monitors Rock! – Take Computer Gaming To Another Level
- Using IContact To Optimize The Effectiveness Of Your Email Marketing
- The Reasons Behind Why You Should Use An IContact Coupon Code
- Software Programmers Or Software Developers Are Required To Develop Applications For Various Purposes.
- Several Quick Tricks For Boosting Your Internet Site Web Optimization
- Small businesses now have affordable access to sophisticated online and mobile telephone systems at affordable prices. Check out the big daddy of the Virtual PBX category with this RingCentral Review.
Blogroll
One Comment
sounds like a classic school assignment.. and you haven’t even tried.
shame on you!
1 start with the identity transform. (search for it)
2 add transforms for each node, and let xsl do all the looping and calls for you.
<xsl:template match="Class">
<html>
<head>
<title> … </title>
<style> …</style>
</head>
<xsl:apply-templates />
</html>
</xsl:template>
Post a Comment