Login   Register  
PHP Classes

File: sitemap.xsl

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Botnari Constantin  >  Google SiteMap generator  >  sitemap.xsl  >  Download  
File: sitemap.xsl
Role: Auxiliary script
Content type: text/plain
Description: This is XSL schema for XML generated file.
Class: Google SiteMap generator
Generate XML sitemaps from page lists
Author: By
Last change:
Date: 6 years ago
Size: 3,227 bytes


Class file image Download
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" 
    <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
    <xsl:template match="/">
        <html xmlns="http://www.w3.org/1999/xhtml">
                <title>XML Sitemap</title>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <style type="text/css">
                    body {
                        font-family:"Lucida Grande","Lucida Sans Unicode",Tahoma,Verdana;
                    #intro {
                        border:1px #2580B2 solid;
                        padding:5px 13px 5px 13px;
                    #intro p {
                        line-height:    16.8667px;
                    td {
                    th {
                    tr.high {
                    #footer {
                    #footer a {
                    a {
                <h1>XML Sitemap</h1>
                <div id="intro">
                      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 />
                        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>.
                <div id="content">
                    <table cellpadding="5">
                        <tr style="border-bottom:1px black solid;">
                            <th>Change Frequency</th>
                        <xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyz'"/>
                        <xsl:variable name="upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
                        <xsl:for-each select="sitemap:urlset/sitemap:url">
                                <xsl:if test="position() mod 2 != 1">
                                    <xsl:attribute  name="class">high</xsl:attribute>
                                    <xsl:variable name="itemURL">
                                        <xsl:value-of select="sitemap:loc"/>
                                    <a href="{$itemURL}">
                                        <xsl:value-of select="sitemap:loc"/>
                                    <xsl:value-of select="concat(sitemap:priority*100,'%')"/>
                                    <xsl:value-of select="concat(translate(substring(sitemap:changefreq, 1, 1),concat($lower, $upper),concat($upper, $lower)),substring(sitemap:changefreq, 2))"/>
                                    <xsl:value-of select="concat(substring(sitemap:lastmod,0,11),concat(' ', substring(sitemap:lastmod,12,5)))"/>
                <div id="footer"><a href="http://info-prim.md">http://info-prim.md</a></div>