šablona/sitemap.xsl
author František Kučera <franta-hg@frantovo.cz>
Tue, 13 Sep 2011 18:06:07 +0200
changeset 37 2e4e7891a2f7
parent 18 45e41566f8a6
child 61 9503eb8377f1
permissions -rw-r--r--
Wiki syntaxe #7 – základ, podpora Markdown syntaxe.

<?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>