šablona/sitemap.xsl
changeset 9 71275159d985
child 18 45e41566f8a6
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/šablona/sitemap.xsl	Sun Apr 03 18:44:35 2011 +0200
     1.3 @@ -0,0 +1,25 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<xsl:stylesheet version="2.0"
     1.6 +	xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
     1.7 +	xmlns:a="http://www.w3.org/2005/Atom"
     1.8 +	xmlns:g="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/prostor"
     1.9 +	xmlns:j="java:cz.frantovo.xmlWebGenerator.Funkce"
    1.10 +	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    1.11 +	xmlns:fn="http://www.w3.org/2005/xpath-functions"
    1.12 +	exclude-result-prefixes="fn g j a">
    1.13 +	<xsl:output	method="xml" indent="yes" encoding="UTF-8"/>
    1.14 +	
    1.15 +	<xsl:template match="/">
    1.16 +		<urlset>
    1.17 +			<xsl:apply-templates select="a:feed/a:entry"/>
    1.18 +		</urlset>
    1.19 +	</xsl:template>
    1.20 +	
    1.21 +	<xsl:template match="a:entry">
    1.22 +		<url>
    1.23 +			<loc><xsl:value-of select="a:link/@href"/></loc>
    1.24 +			<lastmod><xsl:value-of select="a:updated"/></lastmod>
    1.25 +		</url>
    1.26 +	</xsl:template>
    1.27 +	
    1.28 +</xsl:stylesheet>