Show
Ignore:
Timestamp:
04/28/11 00:16:27 (13 years ago)
Author:
František Kučera <franta-hg@…>
Branch:
default
Message:

Volitelná podpora zaostalých prohlížečů (MSIE).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • šablona/atom.xsl

    r7 r15  
    88        exclude-result-prefixes="fn g j"> 
    99        <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'"/> 
    1013         
    1114        <xsl:template match="/">                 
     
    2427                         
    2528                        <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á)]"> 
    2730                                <entry> 
    2831                                        <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)}" /> 
    3134                                        <id><xsl:value-of select="concat('urn:', $konfigurace/g:web/g:kod ,':strana:', encode-for-uri($soubor))"/></id> 
    3235                                        <!--2010-10-09T20:51:04Z-->