šablona/sitemap.xsl
author František Kučera <franta-hg@frantovo.cz>
Sat, 07 Jan 2012 12:43:07 +0100
changeset 60 6e574058ef56
parent 18 45e41566f8a6
child 61 9503eb8377f1
permissions -rw-r--r--
Licence: informace o licenci při spuštění programu.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
	xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
	xmlns:a="http://www.w3.org/2005/Atom"
	xmlns:j="java:cz.frantovo.xmlWebGenerator.Funkce"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:fn="http://www.w3.org/2005/xpath-functions"
	exclude-result-prefixes="fn j a">
	<xsl:output	method="xml" indent="yes" encoding="UTF-8"/>
	
	<xsl:template match="/">
		<urlset>
			<xsl:apply-templates select="a:feed/a:entry"/>
		</urlset>
	</xsl:template>
	
	<xsl:template match="a:entry">
		<url>
			<loc><xsl:value-of select="a:link/@href"/></loc>
			<lastmod><xsl:value-of select="a:updated"/></lastmod>
		</url>
	</xsl:template>
	
</xsl:stylesheet>