|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <xsl:stylesheet version="2.0" |
|
3 xmlns:html="http://www.w3.org/TR/REC-html40" |
|
4 xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9" |
|
5 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
|
6 <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/> |
|
7 <xsl:template match="/"> |
|
8 <html xmlns="http://www.w3.org/1999/xhtml"> |
|
9 <head> |
|
10 <title>XML Sitemap</title> |
|
11 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|
12 <style type="text/css"> |
|
13 body { |
|
14 font-family:"Lucida Grande","Lucida Sans Unicode",Tahoma,Verdana; |
|
15 font-size:13px; |
|
16 } |
|
17 |
|
18 #intro { |
|
19 background-color:#CFEBF7; |
|
20 border:1px #2580B2 solid; |
|
21 padding:5px 13px 5px 13px; |
|
22 margin:10px; |
|
23 } |
|
24 |
|
25 #intro p { |
|
26 line-height: 16.8667px; |
|
27 } |
|
28 |
|
29 td { |
|
30 font-size:11px; |
|
31 } |
|
32 |
|
33 th { |
|
34 text-align:left; |
|
35 padding-right:30px; |
|
36 font-size:11px; |
|
37 } |
|
38 |
|
39 tr.high { |
|
40 background-color:whitesmoke; |
|
41 } |
|
42 |
|
43 #footer { |
|
44 padding:2px; |
|
45 margin:10px; |
|
46 font-size:8pt; |
|
47 color:gray; |
|
48 } |
|
49 |
|
50 #footer a { |
|
51 color:gray; |
|
52 } |
|
53 |
|
54 a { |
|
55 color:black; |
|
56 } |
|
57 </style> |
|
58 </head> |
|
59 <body> |
|
60 <h1>XML Sitemap</h1> |
|
61 <div id="intro"> |
|
62 <p> |
|
63 This is a XML Sitemap which is supposed to be processed by search engines like <a href="http://www.google.com">Google</a>, <a href="http://search.msn.com">MSN Search</a> and <a href="http://www.yahoo.com">YAHOO</a>.<br /> |
|
64 It was generated using the Blogging-Software <a href="http://wordpress.org/">WordPress</a> and the <a href="http://www.arnebrachhold.de/redir/sitemap-home/" title="Google Sitemap Generator Plugin for WordPress">Google Sitemap Generator Plugin</a> by <a href="http://www.arnebrachhold.de/">Arne Brachhold</a>.<br /> |
|
65 You can find more information about XML sitemaps on <a href="http://sitemaps.org">sitemaps.org</a> and Google's <a href="http://code.google.com/sm_thirdparty.html">list of sitemap programs</a>. |
|
66 </p> |
|
67 </div> |
|
68 <div id="content"> |
|
69 <table cellpadding="5"> |
|
70 <tr style="border-bottom:1px black solid;"> |
|
71 <th>URL</th> |
|
72 <th>Priority</th> |
|
73 <th>Change Frequency</th> |
|
74 <th>LastChange</th> |
|
75 </tr> |
|
76 <xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyz'"/> |
|
77 <xsl:variable name="upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/> |
|
78 <xsl:for-each select="sitemap:urlset/sitemap:url"> |
|
79 <tr> |
|
80 <xsl:if test="position() mod 2 != 1"> |
|
81 <xsl:attribute name="class">high</xsl:attribute> |
|
82 </xsl:if> |
|
83 <td> |
|
84 <xsl:variable name="itemURL"> |
|
85 <xsl:value-of select="sitemap:loc"/> |
|
86 </xsl:variable> |
|
87 <a href="{$itemURL}"> |
|
88 <xsl:value-of select="sitemap:loc"/> |
|
89 </a> |
|
90 </td> |
|
91 <td> |
|
92 <xsl:value-of select="concat(sitemap:priority*100,'%')"/> |
|
93 </td> |
|
94 <td> |
|
95 <xsl:value-of select="concat(translate(substring(sitemap:changefreq, 1, 1),concat($lower, $upper),concat($upper, $lower)),substring(sitemap:changefreq, 2))"/> |
|
96 </td> |
|
97 <td> |
|
98 <xsl:value-of select="concat(substring(sitemap:lastmod,0,11),concat(' ', substring(sitemap:lastmod,12,5)))"/> |
|
99 </td> |
|
100 </tr> |
|
101 </xsl:for-each> |
|
102 </table> |
|
103 </div> |
|
104 <div id="footer"> |
|
105 Generated with <a href="http://www.arnebrachhold.de/redir/sitemap-home/" title="Google Sitemap Generator Plugin for WordPress">Google Sitemap Generator Plugin for WordPress</a> by <a href="http://www.arnebrachhold.de/">Arne Brachhold</a>. This XSLT template is released under GPL. |
|
106 </div> |
|
107 </body> |
|
108 </html> |
|
109 </xsl:template> |
|
110 </xsl:stylesheet> |