šablona/seznam.xsl
changeset 87 25dec6931f18
parent 61 9503eb8377f1
equal deleted inserted replaced
86:3136e1ad9a5b 87:25dec6931f18
    23 	xmlns:j="java:cz.frantovo.xmlWebGenerator.Funkce"
    23 	xmlns:j="java:cz.frantovo.xmlWebGenerator.Funkce"
    24 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    24 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    25 	xmlns:fn="http://www.w3.org/2005/xpath-functions"
    25 	xmlns:fn="http://www.w3.org/2005/xpath-functions"
    26 	exclude-result-prefixes="fn j a">
    26 	exclude-result-prefixes="fn j a">
    27 	<xsl:output	method="xml" indent="yes" encoding="UTF-8"/>
    27 	<xsl:output	method="xml" indent="yes" encoding="UTF-8"/>
    28 	
    28 
    29 	<xsl:template match="/">
    29 	<xsl:template match="/">
    30 		<stránka
    30 		<stránka
    31 			xmlns="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana"
    31 			xmlns="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana"
    32 			xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro">
    32 			xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro">
    33 			<skrytá>ano</skrytá>
    33 			<skrytá>ano</skrytá>
    34 			<nadpis>Seznam všech stránek</nadpis>
    34 			<nadpis>Seznam všech stránek</nadpis>
    35 			<perex>Všechny stránky tohoto webu.</perex>			
    35 			<perex>Všechny stránky tohoto webu.</perex>
    36 			<text xmlns="http://www.w3.org/1999/xhtml">				
    36 			<text xmlns="http://www.w3.org/1999/xhtml">
    37 				<xsl:apply-templates select="a:feed/a:entry"/>								
    37 				<xsl:apply-templates select="a:feed/a:entry"/>
    38 			</text>	
    38 			</text>
    39 		</stránka>		
    39 		</stránka>
    40 	</xsl:template>
    40 	</xsl:template>
    41 	
    41 
    42 	<xsl:template match="a:entry">
    42 	<xsl:template match="a:entry">
    43 		<p style="seznamStranek">
    43 		<p style="seznamStranek">
    44 			<xsl:variable name="základníUrl" select="//a:feed/a:link[not(@rel)]/@href"/>
    44 			<xsl:variable name="základníUrl" select="//a:feed/a:link[not(@rel)]/@href"/>
    45 			<a href="{replace(a:link/@href, $základníUrl, '')}"><xsl:value-of select="a:title"/></a>
    45 			<a href="{replace(a:link/@href, $základníUrl, '')}"><xsl:value-of select="a:title"/></a>
    46
    46
    47 			<xsl:value-of select="a:summary"/>
    47 			<xsl:value-of select="a:summary"/>
    48 			(<xsl:value-of select="format-dateTime(adjust-dateTime-to-timezone(a:updated),
    48 			(<xsl:value-of select="format-dateTime(adjust-dateTime-to-timezone(a:updated),
    49 				'[D1].[M1]. [Y0001] [H1]:[m01]')"/>)
    49 				'[D1].[M1]. [Y0001] [H1]:[m01]')"/>)
    50 		</p>				
    50 		</p>
    51 	</xsl:template>
    51 	</xsl:template>
    52 	
    52 
    53 </xsl:stylesheet>
    53 </xsl:stylesheet>
       
    54