šablona/sitemap.xsl
changeset 87 25dec6931f18
parent 61 9503eb8377f1
child 136 d5feb9d8ebc3
equal deleted inserted replaced
86:3136e1ad9a5b 87:25dec6931f18
    22 	xmlns:j="java:cz.frantovo.xmlWebGenerator.Funkce"
    22 	xmlns:j="java:cz.frantovo.xmlWebGenerator.Funkce"
    23 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    23 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    24 	xmlns:fn="http://www.w3.org/2005/xpath-functions"
    24 	xmlns:fn="http://www.w3.org/2005/xpath-functions"
    25 	exclude-result-prefixes="fn j a">
    25 	exclude-result-prefixes="fn j a">
    26 	<xsl:output	method="xml" indent="yes" encoding="UTF-8"/>
    26 	<xsl:output	method="xml" indent="yes" encoding="UTF-8"/>
    27 	
    27 
    28 	<xsl:template match="/">
    28 	<xsl:template match="/">
    29 		<urlset>
    29 		<urlset>
    30 			<xsl:apply-templates select="a:feed/a:entry"/>
    30 			<xsl:apply-templates select="a:feed/a:entry"/>
    31 		</urlset>
    31 		</urlset>
    32 	</xsl:template>
    32 	</xsl:template>
    33 	
    33 
    34 	<xsl:template match="a:entry">
    34 	<xsl:template match="a:entry">
    35 		<url>
    35 		<url>
    36 			<loc><xsl:value-of select="a:link/@href"/></loc>
    36 			<loc><xsl:value-of select="a:link/@href"/></loc>
    37 			<lastmod><xsl:value-of select="a:updated"/></lastmod>
    37 			<lastmod><xsl:value-of select="a:updated"/></lastmod>
    38 		</url>
    38 		</url>
    39 	</xsl:template>
    39 	</xsl:template>
    40 	
    40 
    41 </xsl:stylesheet>
    41 </xsl:stylesheet>
       
    42