1.1 --- a/šablona/atom.xsl Thu Apr 28 00:16:27 2011 +0200
1.2 +++ b/šablona/atom.xsl Sat Apr 30 19:34:55 2011 +0200
1.3 @@ -1,11 +1,12 @@
1.4 <?xml version="1.0" encoding="UTF-8"?>
1.5 <xsl:stylesheet version="2.0"
1.6 xmlns="http://www.w3.org/2005/Atom"
1.7 - xmlns:g="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/prostor"
1.8 + xmlns:s="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana"
1.9 + xmlns:k="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/konfigurace"
1.10 xmlns:j="java:cz.frantovo.xmlWebGenerator.Funkce"
1.11 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
1.12 xmlns:fn="http://www.w3.org/2005/xpath-functions"
1.13 - exclude-result-prefixes="fn g j">
1.14 + exclude-result-prefixes="fn s k j">
1.15 <xsl:output method="xml" indent="yes" encoding="UTF-8"/>
1.16
1.17 <xsl:param name="vstupníPřípona" select="'.xml'"/>
1.18 @@ -14,27 +15,26 @@
1.19 <xsl:template match="/">
1.20
1.21 <feed>
1.22 - <title><xsl:value-of select="g:web/g:název"/></title>
1.23 - <subtitle><xsl:value-of select="g:web/g:podtitul"/></subtitle>
1.24 - <link rel="self" href="{concat(g:web/g:url, 'atom.xml')}"/>
1.25 - <link href="{g:web/g:url}"/>
1.26 + <title><xsl:value-of select="k:web/k:název"/></title>
1.27 + <subtitle><xsl:value-of select="k:web/k:podtitul"/></subtitle>
1.28 + <link rel="self" href="{concat(k:web/k:url, 'atom.xml')}"/>
1.29 + <link href="{k:web/k:url}"/>
1.30 <updated><xsl:value-of select="current-dateTime()"/></updated>
1.31 <author>
1.32 - <name><xsl:value-of select="g:web/g:autor/g:jméno"/></name>
1.33 - <email><xsl:value-of select="g:web/g:autor/g:email"/></email>
1.34 + <name><xsl:value-of select="k:web/k:autor/k:jméno"/></name>
1.35 + <email><xsl:value-of select="k:web/k:autor/k:email"/></email>
1.36 </author>
1.37 - <id><xsl:value-of select="concat('urn:uuid:', g:web/g:uuid)"/></id>
1.38 + <id><xsl:value-of select="concat('urn:uuid:', k:web/k:uuid)"/></id>
1.39
1.40 <xsl:variable name="konfigurace" select="/"/>
1.41 - <xsl:for-each select="collection(concat('../vstup/?select=*', $vstupníPřípona))[empty(g:stránka/g:skrytá) or not(g:stránka/g:skrytá)]">
1.42 + <xsl:for-each select="collection(concat('../vstup/?select=*', $vstupníPřípona))[empty(s:stránka/s:skrytá) or not(s:stránka/s:skrytá)]">
1.43 <entry>
1.44 - <title><xsl:value-of select="g:stránka/g:nadpis"/></title>
1.45 + <title><xsl:value-of select="s:stránka/s:nadpis"/></title>
1.46 <xsl:variable name="soubor" select="replace(tokenize(document-uri(.), '/')[last()], $vstupníPřípona, '')"/>
1.47 - <link href="{concat($konfigurace/g:web/g:url, encode-for-uri($soubor), $výstupníPřípona)}" />
1.48 - <id><xsl:value-of select="concat('urn:', $konfigurace/g:web/g:kod ,':strana:', encode-for-uri($soubor))"/></id>
1.49 - <!--2010-10-09T20:51:04Z-->
1.50 + <link href="{concat($konfigurace/k:web/k:url, encode-for-uri($soubor), $výstupníPřípona)}" />
1.51 + <id><xsl:value-of select="concat('urn:', $konfigurace/k:web/k:kod ,':strana:', encode-for-uri($soubor))"/></id>
1.52 <updated><xsl:value-of select="j:posledníZměna(document-uri(.))"/></updated>
1.53 - <summary><xsl:value-of select="g:stránka/g:perex"/></summary>
1.54 + <summary><xsl:value-of select="s:stránka/s:perex"/></summary>
1.55 </entry>
1.56 </xsl:for-each>
1.57