/
xsl.xsl
46 lines (37 loc) · 1.48 KB
/
xsl.xsl
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
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<head>
<title>result</title>
</head>
<body backgound="wall.jpg">
<table border="1" cellpadding="4" font-color="green" align="center">
<tr>
<th>NAME</th>
<th>CODE</th>
<th>MARKS</th>
<th>RANK</th>
</tr>
<xsl:for-each select="result/course">
<tr>
<td>
<xsl:value-of select="name"/>
</td>
<td>
<xsl:value-of select="code"/>
</td>
<td>
<xsl:value-of select="marks"/>
</td>
<td>
<xsl:value-of select="rank"/>
</td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>