-
Notifications
You must be signed in to change notification settings - Fork 0
/
lab4b.xls
34 lines (34 loc) · 921 Bytes
/
lab4b.xls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?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>
<h1>VTU STUDENTS INFORMATION</h1>
<table border="2">
<tr><th>NAME</th><th>USN</th><th>BRANCH</th><th>COLLEGE</th></tr>
<xsl:for-each select="vtu/student">
<xsl:choose>
<xsl:when test="name='DEF'">
<tr bgcolor="red">
<td><xsl:value-of select='name' /></td>
<td><xsl:value-of select='usn' /></td>
<td><xsl:value-of select='branch' /></td>
<td><xsl:value-of select='college' /></td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr>
<td><xsl:value-of select='name' /></td>
<td><xsl:value-of select='usn' /></td>
<td><xsl:value-of select='branch' /></td>
<td><xsl:value-of select='college' /></td>
</tr>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</table>
Selected Student Information
</body>
</html>
</xsl:template>
</xsl:stylesheet>