1.1 --- a/šablona/atom.xsl Sun Apr 03 16:34:42 2011 +0200
1.2 +++ b/šablona/atom.xsl Sun Apr 03 17:44:58 2011 +0200
1.3 @@ -8,24 +8,21 @@
1.4 exclude-result-prefixes="fn g j">
1.5 <xsl:output method="xml" indent="yes" encoding="UTF-8"/>
1.6
1.7 - <xsl:param name="konfigurák"></xsl:param>
1.8 -
1.9 - <xsl:template match="/">
1.10 - <!-- TODO: proměnná: -->
1.11 - <xsl:variable name="konfigurace" select="document($konfigurák)"/>
1.12 + <xsl:template match="/">
1.13
1.14 <feed>
1.15 - <title><xsl:value-of select="$konfigurace/g:web/g:název"/></title>
1.16 - <subtitle><xsl:value-of select="$konfigurace/g:web/g:podtitul"/></subtitle>
1.17 - <link rel="self" href="{concat($konfigurace/g:web/g:url, 'atom.xml')}"/>
1.18 - <link href="{$konfigurace/g:web/g:url}"/>
1.19 + <title><xsl:value-of select="g:web/g:název"/></title>
1.20 + <subtitle><xsl:value-of select="g:web/g:podtitul"/></subtitle>
1.21 + <link rel="self" href="{concat(g:web/g:url, 'atom.xml')}"/>
1.22 + <link href="{g:web/g:url}"/>
1.23 <updated><xsl:value-of select="current-dateTime()"/></updated>
1.24 <author>
1.25 - <name><xsl:value-of select="$konfigurace/g:web/g:autor/g:jméno"/></name>
1.26 - <email><xsl:value-of select="$konfigurace/g:web/g:autor/g:email"/></email>
1.27 + <name><xsl:value-of select="g:web/g:autor/g:jméno"/></name>
1.28 + <email><xsl:value-of select="g:web/g:autor/g:email"/></email>
1.29 </author>
1.30 - <id><xsl:value-of select="concat('urn:uuid:', $konfigurace/g:web/g:uuid)"/></id>
1.31 + <id><xsl:value-of select="concat('urn:uuid:', g:web/g:uuid)"/></id>
1.32
1.33 + <xsl:variable name="konfigurace" select="/"/>
1.34 <xsl:for-each select="collection('../vstup/?select=*.xml')[empty(g:stránka/g:skrytá) or not(g:stránka/g:skrytá)]">
1.35 <entry>
1.36 <title><xsl:value-of select="g:stránka/g:nadpis"/></title>