-
Notifications
You must be signed in to change notification settings - Fork 42
/
sitemap.xsl
107 lines (107 loc) · 3.37 KB
/
sitemap.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
101
102
103
104
105
106
107
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:s="http://www.sitemaps.org/schemas/sitemap/0.9"
exclude-result-prefixes="s"
>
<xsl:template match="/">
<html>
<head>
<meta name="robots" content="noindex" />
<title>
XML Sitemap
</title>
<style type="text/css">
@import url('//cdn.jsdelivr.net/pure/0.6.0/base-min.css');
@import url('//cdn.jsdelivr.net/pure/0.6.0/pure-min.css');
@import url('//cdn.jsdelivr.net/pure/0.6.0/grids-responsive-min.css');
@import url('//fonts.googleapis.com/css?family=Raleway:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic');
.font_smooth {
font-smooth: auto;
text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: 100%
}
html {
font-smooth: auto;
text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: 100%;
background-color: #fff
}
body {
font-family: 'Raleway', sans-serif;
font-size: 20px;
line-height: 1.8em;
letter-spacing: 0;
text-align: left;
color: #333
}
body {
overflow: auto;
padding: 20px
}
.clear {
clear: both;
float: none
}
a,
a:link,
a:visited {
text-decoration: none;
border-bottom: dotted 1px #333;
color: #333
}
h1,h2,h3,h4,h5,h6 {
font-family: Raleway;
font-weight: 300;
line-height: 1.2em;
letter-spacing: 0px;
color: #000
}
table {
margin: 0 auto;
}
th {
border: solid 1px #cbcbcb !important;
text-align: center;
background: #fff
}
</style>
</head>
<body>
<table class="pure-table pure-table-striped" border="0">
<thead>
<tr>
<th colspan="5">Sitemap</th>
</tr>
<tr>
<th></th>
<th>Location</th>
<th>Last Modified</th>
<th>Update Frequency</th>
<th>Priority</th>
</tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<xsl:for-each select="s:urlset/s:url">
<xsl:sort select="s:loc" />
<tr>
<xsl:variable name="loc"><xsl:value-of select="s:loc"/></xsl:variable>
<xsl:variable name="pno"><xsl:value-of select="position()"/></xsl:variable>
<td><xsl:value-of select="$pno"/></td>
<td><a href="{$loc}"><xsl:value-of select="s:loc"/></a></td>
<td><xsl:value-of select="s:lastmod"/></td>
<td><xsl:value-of select="s:changefreq"/></td>
<td><xsl:value-of select="s:priority"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>