-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtablea2.xsl
More file actions
66 lines (62 loc) · 1.72 KB
/
tablea2.xsl
File metadata and controls
66 lines (62 loc) · 1.72 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<style>
#tab {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#tab td,
#tab th {
border: 1px solid #ddd;
padding: 8px;
}
#tab td:nth-child(even) {
background-color: #f2f2f2;
}
#tab td:hover {
background-color: #ddd;
}
#tab th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #4b4276;
color: white;
}
</style>
</head>
<body>
<h2><center>BOOKING DETAILS OF AUSTRALIA-7/8 PLAN</center></h2>
<table border="1" id="tab">
<tr bgcolor="#9acd32">
<th>Name</th>
<th>E-Mail</th>
<th>Contact no</th>
<th>Date</th>
<th>Adult</th>
<th>Child</th>
<th>State</th>
<th>Price</th>
</tr>
<xsl:for-each select="document/data">
<tr>
<td><xsl:value-of select="Name" /></td>
<td><xsl:value-of select="E-Mail" /></td>
<td><xsl:value-of select="Contact_no" /></td>
<td><xsl:value-of select="Date" /></td>
<td><xsl:value-of select="Adult" /></td>
<td><xsl:value-of select="Child" /></td>
<td><xsl:value-of select="State" /></td>
<td><xsl:value-of select="Price" /></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>