0
<xsl:template match="/">
0
<html xmlns="http://www.w3.org/1999/xhtml">
0
- <title>XML Sitemap
</title>
0
+ <title>XML Sitemap
: <%= (@site.name || "Rails Web Application") %></title>
0
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
0
<style type="text/css">
0
- font-family:"Lucida Grande","Lucida Sans Unicode",Tahoma,Verdana;
0
+ font: 62.5% Arial, Verdana, sans-serif;
0
- background-color:#CFEBF7;
0
- border:1px #2580B2 solid;
0
- padding:5px 13px 5px 13px;
0
+ border-bottom: 1px solid #ccc;
0
+ font: italic 1.4em Tahoma, Georgia, Times New Roman, sans-serif;
0
- line-height: 16.8667px;
0
- background-color:whitesmoke;
0
+ background-color: #e9e9e9;
0
+ border-bottom: 1px solid #ccc;
0
+ padding: 10px 0 10px 5px;
0
+ font: 1.1em Verdana, sans-serif;
0
+ text-decoration: none;
0
+ text-decoration: underline;
0
+ text-decoration: underline;
0
+ text-decoration: underline;
0
+ <h1>XML Sitemap
: <%= (@site.name || "Rails Web Application") %></h1>
0
- 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 />
0
- It was generated using the <a href="http://seoandrails.com/plugins">rails sitemap</a> plugin.<br />
0
- 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>.
0
+ <p>This is an XML Sitemap generated using the <a href="http://seoandrails.com/plugins">Google Sitemap Generator Plugin for Rails</a>.</p>
0
+ <p class="last">It is intended to be processed by search engines such as <a href="http://www.google.com">Google</a>, <a href="http://search.yahoo.com/">Yahoo Search</a>, <a href="http://www.live.com">Microsoft Live Search</a>, and <a href="http://www.ask.com/">Ask.com
0
- <table cellpadding="5">
0
- <tr style="border-bottom:1px black solid;">
0
+ <table border="0" cellspacing="0" cellpadding="0">
0
<th>Change Frequency</th>
0
<xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyz'"/>
0
<xsl:variable name="upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
0
<xsl:for-each select="sitemap:urlset/sitemap:url">
0
- <xsl:if test="position() mod 2 != 1">
0
- <xsl:attribute name="class">high</xsl:attribute>
0
- <xsl:variable name="itemURL">
0
- <xsl:value-of select="sitemap:loc"/>
0
- <xsl:value-of select="sitemap:loc"/>
0
- <xsl:value-of select="concat(sitemap:priority*100,'%')"/>
0
- <xsl:value-of select="concat(translate(substring(sitemap:changefreq, 1, 1),concat($lower, $upper),concat($upper, $lower)),substring(sitemap:changefreq, 2))"/>
0
- <xsl:value-of select="concat(substring(sitemap:lastmod,0,11),concat(' ', substring(sitemap:lastmod,12,5)))"/>
0
+ <xsl:if test="position() mod 2 != 1">
0
+ <xsl:attribute name="class">high</xsl:attribute>
0
+ <xsl:variable name="itemURL">
0
+ <xsl:value-of select="sitemap:loc"/>
0
+ <xsl:value-of select="sitemap:loc"/>
0
+ <xsl:value-of select="concat(sitemap:priority*100,'%')"/>
0
+ <xsl:value-of select="concat(translate(substring(sitemap:changefreq, 1, 1),concat($lower, $upper),concat($upper, $lower)),substring(sitemap:changefreq, 2))"/>
0
+ <xsl:value-of select="concat(substring(sitemap:lastmod,0,11),concat(' ', substring(sitemap:lastmod,12,5)))"/>
0
- Generated with <a href="http://seoandrails.com" title="Google Sitemap Generator Plugin for Rails">Google Sitemap Generator Plugin for Rails.</a>. This XSLT template is released under GPL.
0
+ <p>Generated with <a href="http://seoandrails.com/" title="Google Sitemap Generator Plugin for Rails">Google Sitemap Generator Plugin for Rails</a>.</p>
0
+ <p>More information about XML sitemaps can be found at <a href="http://sitemaps.org">sitemaps.org</a> or at <a href="http://code.google.com/sm_thirdparty.html">Google's list of sitemap programs</a>.</p>
Comments
No one has commented yet.