šablona/rss.xsl
changeset 96 8de228c9ac10
parent 61 9503eb8377f1
child 136 d5feb9d8ebc3
     1.1 --- a/šablona/rss.xsl	Sat Jan 07 12:43:30 2012 +0100
     1.2 +++ b/šablona/rss.xsl	Sat Jun 23 20:12:44 2012 +0200
     1.3 @@ -24,32 +24,33 @@
     1.4  	xmlns:fn="http://www.w3.org/2005/xpath-functions"
     1.5  	exclude-result-prefixes="fn j a">
     1.6  	<xsl:output	method="xml" indent="yes" encoding="UTF-8"/>
     1.7 -	
     1.8 -	<xsl:template match="/">		
     1.9 +
    1.10 +	<xsl:template match="/">
    1.11  		<rss version="2.0">
    1.12  			<channel>
    1.13  				<xsl:variable name="url" select="a:feed/a:link[not(@rel)]/@href"/>
    1.14  				<title><xsl:value-of select="a:feed/a:title"/></title>
    1.15  				<link><xsl:value-of select="$url"/></link>
    1.16 -				<description><xsl:value-of select="a:feed/a:subtitle"/></description>				
    1.17 +				<description><xsl:value-of select="a:feed/a:subtitle"/></description>
    1.18  				<atom:link rel="self" href="{$url}rss.xml"/>
    1.19  				<xsl:apply-templates select="a:feed/a:entry"/>
    1.20  			</channel>
    1.21 -		</rss>		
    1.22 +		</rss>
    1.23  	</xsl:template>
    1.24 -	
    1.25 +
    1.26  	<xsl:template match="a:entry">
    1.27 -		<item>		
    1.28 +		<item>
    1.29  			<title><xsl:value-of select="a:title"/></title>
    1.30  			<link><xsl:value-of select="a:link/@href"/></link>
    1.31  			<description><xsl:value-of select="a:summary"/></description>
    1.32  			<guid><xsl:value-of select="a:id"/></guid>
    1.33  			<pubDate><xsl:value-of select="format-dateTime(a:updated,
    1.34 -                '[FNn,*-3], [D01] [MNn,*-3] [Y0001] [H01]:[m01]:[s01] [Z]',
    1.35 -                'en',
    1.36 -                'ISO',
    1.37 -                'US')"/></pubDate>		
    1.38 +				'[FNn,*-3], [D01] [MNn,*-3] [Y0001] [H01]:[m01]:[s01] [Z]',
    1.39 +				'en',
    1.40 +				'ISO',
    1.41 +				'US')"/></pubDate>
    1.42  		</item>
    1.43  	</xsl:template>
    1.44 -	
    1.45 +
    1.46  </xsl:stylesheet>
    1.47 +