šablona/sitemap.xsl
author František Kučera <franta-hg@frantovo.cz>
Sun Apr 03 23:15:36 2011 +0200 (2011-04-03)
changeset 12 3719b121c3c4
child 18 45e41566f8a6
permissions -rw-r--r--
Konečně nějaký vzhled pro ukázkové stránky, CSS, patička, trochu 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>