Changeset 15:cfb2fc0ca242 for šablona/atom.xsl
- Timestamp:
- 04/28/11 00:16:27 (13 years ago)
- Branch:
- default
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
šablona/atom.xsl
r7 r15 8 8 exclude-result-prefixes="fn g j"> 9 9 <xsl:output method="xml" indent="yes" encoding="UTF-8"/> 10 11 <xsl:param name="vstupníPřípona" select="'.xml'"/> 12 <xsl:param name="výstupníPřípona" select="'.xhtml'"/> 10 13 11 14 <xsl:template match="/"> … … 24 27 25 28 <xsl:variable name="konfigurace" select="/"/> 26 <xsl:for-each select="collection( '../vstup/?select=*.xml')[empty(g:stránka/g:skrytá) or not(g:stránka/g:skrytá)]">29 <xsl:for-each select="collection(concat('../vstup/?select=*', $vstupníPřípona))[empty(g:stránka/g:skrytá) or not(g:stránka/g:skrytá)]"> 27 30 <entry> 28 31 <title><xsl:value-of select="g:stránka/g:nadpis"/></title> 29 <xsl:variable name="soubor" select="replace(tokenize(document-uri(.), '/')[last()], '.xml', '')"/>30 <link href="{concat($konfigurace/g:web/g:url, encode-for-uri($soubor), '.xhtml')}" />32 <xsl:variable name="soubor" select="replace(tokenize(document-uri(.), '/')[last()], $vstupníPřípona, '')"/> 33 <link href="{concat($konfigurace/g:web/g:url, encode-for-uri($soubor), $výstupníPřípona)}" /> 31 34 <id><xsl:value-of select="concat('urn:', $konfigurace/g:web/g:kod ,':strana:', encode-for-uri($soubor))"/></id> 32 35 <!--2010-10-09T20:51:04Z-->