Hi,
you have 2 remember two things to solve this issue.,
1. xml declaraion is optional in xml document. however, if you give the xml declaraion. it should be occurs immediate within the xml document. <?xml version="1.0"?>
2. xsl namespace should be [ http://www.w3.org/1999/XSL/Transform] case sensitive.
hence try this codes
1. xml doc
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="school.xsl"?>
<UCSC>
<student>
<name>Isuru ilangakoon</name>
<age>21</age>
<contct_no>0714234672</contct_no>
<degree>computer science</degree>
<school>DVharmapala college</school>
</student>
<student>
<name>randika malinga</name>
<age>22</age>
<contact_no>0713567134</contact_no>
<degree>computer science</degree>
<school>Nalanda college</school>
</student>
<student>
<name>vinod kawinda</name>
<age>22</age>
<contct_no>0783451024</contct_no>
<degree>computer science</degree>
<school>maliyadewa college</school>
</student>
<student>
<name>Inshaf mahatt</name>
<age>21</age>
<contct_no>0777234151</contct_no>
<degree>ICT</degree>
<school>D.S.Senanayaka college</school>
</student>
<student>
<name>Dilum lokuge</name>
<age>21</age>
<contct_no>0724123673</contct_no>
<degree>computer science</degree>
<school>mahanama college</school>
</student>
<student>
<name>Yassari kasun</name>
<age>22</age>
<contct_no>0783482493</contct_no>
<degree>computer science</degree>
<school>Thakshila college</school>
</student>
<student>
<name>Akila ravihansa</name>
<age>21</age>
<contct_no>0777314734</contct_no>
<degree>computer science</degree>
<school>Ananda college</school>
</student>
<student>
<name>Nuwan chaturanga</name>
<age>20</age>
<contct_no>0774853673</contct_no>
<degree>computer science</degree>
<school>Royal college</school>
</student>
<student>
<name>Shazan buka</name>
<age>23</age>
<contct_no>0776235924</contct_no>
<degree>computer science</degree>
<school>thurstan college</school>
</student>
<student>
<name>Dhanushika nawinna</name>
<age>21</age>
<contct_no>0714324672</contct_no>
<degree>BIT</degree>
<school>Goodshepherd convent</school>
</student>
</UCSC> 2. xsl doc
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2> UCSC Informations</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th>Name</th>
<th>Age</th>
<th>Contact No</th>
<th>Degree</th>
<th>School</th>
</tr>
<xsl:for-each select="UCSC/student">
<tr>
<td><xsl:value-of select="name"/></td>
<td><xsl:value-of select="age"/></td>
<td><xsl:value-of select="contact_no"/></td>
<td><xsl:value-of select="degree"/></td>
<td><xsl:value-of select="school"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Thanks and Regards,
yuvanbala