0
76kviews
Write an XML to accept student details [Name, ID, Branch and CGPA]. Write an XSL to display the list of students in descending order of their CGPA.
1 Answer
3
7.0kviews

student.xml File

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type='text/xsl' href='cgpa.xsl'?> 
<class>
<student>
<name> ABC </name>
<id> 001 </id>
<branch> IT </branch>
<cgpa> 9 </cgpa>
</student>
<student>
<name> PQR </name>
<id> 004 </id>
<branch> Computer </branch>
<cgpa> 7 </cgpa>
</student>
<student>
<name> XYZ </name>
<id> 006 </id>
<branch> IT </branch>
<cgpa> 10 </cgpa> …

Create a free account to keep reading this post.

and 5 others joined a min ago.

Please log in to add an answer.