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

Atom – zjednodušení, #2

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • šablona/atom.xsl

    r6 r7  
    99        <xsl:output     method="xml" indent="yes" encoding="UTF-8"/> 
    1010         
    11         <xsl:param name="konfigurák"></xsl:param> 
    12          
    13         <xsl:template match="/"> 
    14                 <!-- TODO: proměnná: --> 
    15                 <xsl:variable name="konfigurace" select="document($konfigurák)"/> 
     11        <xsl:template match="/">                 
    1612         
    1713                <feed> 
    18                         <title><xsl:value-of select="$konfigurace/g:web/g:název"/></title> 
    19                         <subtitle><xsl:value-of select="$konfigurace/g:web/g:podtitul"/></subtitle> 
    20                         <link rel="self" href="{concat($konfigurace/g:web/g:url, 'atom.xml')}"/> 
    21                         <link href="{$konfigurace/g:web/g:url}"/>                        
     14                        <title><xsl:value-of select="g:web/g:název"/></title> 
     15                        <subtitle><xsl:value-of select="g:web/g:podtitul"/></subtitle> 
     16                        <link rel="self" href="{concat(g:web/g:url, 'atom.xml')}"/> 
     17                        <link href="{g:web/g:url}"/>                     
    2218                        <updated><xsl:value-of select="current-dateTime()"/></updated>                   
    2319                        <author> 
    24                                 <name><xsl:value-of select="$konfigurace/g:web/g:autor/g:jméno"/></name> 
    25                                 <email><xsl:value-of select="$konfigurace/g:web/g:autor/g:email"/></email> 
     20                                <name><xsl:value-of select="g:web/g:autor/g:jméno"/></name> 
     21                                <email><xsl:value-of select="g:web/g:autor/g:email"/></email> 
    2622                        </author> 
    27                         <id><xsl:value-of select="concat('urn:uuid:', $konfigurace/g:web/g:uuid)"/></id> 
     23                        <id><xsl:value-of select="concat('urn:uuid:', g:web/g:uuid)"/></id> 
    2824                         
     25                        <xsl:variable name="konfigurace" select="/"/> 
    2926                        <xsl:for-each select="collection('../vstup/?select=*.xml')[empty(g:stránka/g:skrytá) or not(g:stránka/g:skrytá)]"> 
    3027                                <entry>