1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/šablona/rss.xsl Sun Apr 03 17:44:58 2011 +0200
1.3 @@ -0,0 +1,39 @@
1.4 +<?xml version="1.0" encoding="UTF-8"?>
1.5 +<xsl:stylesheet version="2.0"
1.6 + xmlns:a="http://www.w3.org/2005/Atom"
1.7 + xmlns:g="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/prostor"
1.8 + xmlns:j="java:cz.frantovo.xmlWebGenerator.Funkce"
1.9 + xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
1.10 + xmlns:fn="http://www.w3.org/2005/xpath-functions"
1.11 + xmlns:atom="http://www.w3.org/2005/Atom"
1.12 + exclude-result-prefixes="fn g j a">
1.13 + <xsl:output method="xml" indent="yes" encoding="UTF-8"/>
1.14 +
1.15 + <xsl:template match="/">
1.16 + <rss version="2.0">
1.17 + <channel>
1.18 + <xsl:variable name="url" select="a:feed/a:link[not(@rel)]/@href"/>
1.19 + <title><xsl:value-of select="a:feed/a:title"/></title>
1.20 + <link><xsl:value-of select="$url"/></link>
1.21 + <description><xsl:value-of select="a:feed/a:subtitle"/></description>
1.22 + <atom:link rel="self" href="{$url}rss.xml"/>
1.23 + <xsl:apply-templates select="a:feed/a:entry"/>
1.24 + </channel>
1.25 + </rss>
1.26 + </xsl:template>
1.27 +
1.28 + <xsl:template match="a:entry">
1.29 + <item>
1.30 + <title><xsl:value-of select="a:title"/></title>
1.31 + <link><xsl:value-of select="a:link/@href"/></link>
1.32 + <description><xsl:value-of select="a:summary"/></description>
1.33 + <guid><xsl:value-of select="a:id"/></guid>
1.34 + <pubDate><xsl:value-of select="format-dateTime(a:updated,
1.35 + '[FNn,*-3], [D01] [MNn,*-3] [Y0001] [H01]:[m01]:[s01] [Z]',
1.36 + 'en',
1.37 + 'ISO',
1.38 + 'US')"/></pubDate>
1.39 + </item>
1.40 + </xsl:template>
1.41 +
1.42 +</xsl:stylesheet>