šablona/sitemap.xsl
author František Kučera <franta-hg@frantovo.cz>
Mon, 04 Apr 2011 00:24:56 +0200
changeset 13 d5e9c879663e
parent 9 71275159d985
child 18 45e41566f8a6
permissions -rw-r--r--
Ještě více lorem ipsum.
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <xsl:stylesheet version="2.0"
     3 	xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
     4 	xmlns:a="http://www.w3.org/2005/Atom"
     5 	xmlns:g="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/prostor"
     6 	xmlns:j="java:cz.frantovo.xmlWebGenerator.Funkce"
     7 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     8 	xmlns:fn="http://www.w3.org/2005/xpath-functions"
     9 	exclude-result-prefixes="fn g j a">
    10 	<xsl:output	method="xml" indent="yes" encoding="UTF-8"/>
    11 	
    12 	<xsl:template match="/">
    13 		<urlset>
    14 			<xsl:apply-templates select="a:feed/a:entry"/>
    15 		</urlset>
    16 	</xsl:template>
    17 	
    18 	<xsl:template match="a:entry">
    19 		<url>
    20 			<loc><xsl:value-of select="a:link/@href"/></loc>
    21 			<lastmod><xsl:value-of select="a:updated"/></lastmod>
    22 		</url>
    23 	</xsl:template>
    24 	
    25 </xsl:stylesheet>