forked from cjafonso/IIS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMIMETypes.xsl
100 lines (94 loc) · 2.41 KB
/
MIMETypes.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="Data"></xsl:param>
<xsl:template match="IISRegisteredMimeTypes">
<html>
<head>
<style>
Table.Report
{
border: 1px solid black;
border-collapse: collapse;
font-family: calibri;
font-size: 14px;
}
TD.ReportRowLeft
{
height: 26px;
background-color: #F0F0F0;
padding-left: 6px;
width: 500px;
}
TD.ReportRow
{
width: 100px;
border-left: 1px solid black;
text-align: left;
background-color: #F0F0F0;
padding-left: 6px;
}
TD.ReportRowHeader
{
border-bottom: 1px solid black;
border-left: 1px solid black;
height: 60px;
background-color: #C0C0C0;
}
Table.ReportHeader
{
border:1px solid black;
border-collapse: collapse;
font-family:calibri;
font-size:14px;
}
</style>
</head>
<body style="font-family:calibri; font-size:12px;">
<center>
<table style="width:400px;" class="ReportHeader">
<tr>
<td style="width:200px; height:30px; padding-left:10px; padding-top:10px;">
MIME Types from IIS
</td>
<td style="width:200px; padding-right:10px; padding-top:10px; text-align:right;">
Date : <xsl:value-of select="$Data" />
</td>
</tr>
</table>
<br />
<table style="width:400px;" class="Report">
<tr>
<td style="width:200px; padding-left: 6px;" class="ReportRowHeader">
MIME Type
</td>
<td style="width: 200px; text-align: center;" class="ReportRowHeader">
Extension
</td>
</tr>
<xsl:for-each select="RegisteredType">
<tr>
<td class="ReportRowLeft">
<xsl:value-of select="MimeType"/>
</td>
<td class="ReportRow">
<xsl:value-of select="Extension"/>
</td>
</tr>
</xsl:for-each>
</table>
<br />
<table style="width:400px;" class="ReportHeader">
<tr>
<td style="width:200px; height:40px; padding-left:10px;">
</td>
<td style="width:200px; padding-right:10px; padding-top:10px; text-align:right;">
Date : <xsl:value-of select="$Data" />
</td>
</tr>
</table>
<br />
</center>
</body>
</html>
</xsl:template>
</xsl:stylesheet>