Changeset 49:0be359e4c06f

Show
Ignore:
Timestamp:
01/05/12 16:19:22 (12 years ago)
Author:
František Kučera <franta-hg@…>
Branch:
default
Message:

Pro tvorbu tabulek #15 se bude používat tabulátor (místo středníku).

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • vstup/služby.xml

    r46 r49  
    1515                 
    1616                <m:tabulka> 
    17                         Velikost ptáka;Cena za jedno krmení 
    18                         malý;250 
    19                         střední;500 
    20                         velký;1000 
     17                        Velikost ptáka          Cena za jedno krmení 
     18                        malý                            250 
     19                        střední                         500 
     20                        velký                           1000 
    2121                </m:tabulka> 
    2222                 
  • šablona/stránka.xsl

    r46 r49  
    228228                <thead> 
    229229                        <tr> 
    230                                 <xsl:for-each select="tokenize($hlavička, ';')"> 
    231                                                 <td><xsl:value-of select="normalize-space(.)"/></td> 
     230                                <xsl:for-each select="tokenize($hlavička, '\t')"> 
     231                                        <xsl:if test="normalize-space(.)"> 
     232                                                        <td><xsl:value-of select="normalize-space(.)"/></td> 
     233                                                </xsl:if> 
    232234                                        </xsl:for-each> 
    233235                        </tr> 
     
    237239                                        <xsl:if test="normalize-space(.)"> 
    238240                                                <tr> 
    239                                                         <xsl:for-each select="tokenize(., ';')"> 
    240                                                                 <td><xsl:value-of select="normalize-space(.)"/></td> 
     241                                                        <xsl:for-each select="tokenize(., '\t')"> 
     242                                                                <xsl:if test="normalize-space(.)"> 
     243                                                                        <td><xsl:value-of select="normalize-space(.)"/></td> 
     244                                                                </xsl:if> 
    241245                                                        </xsl:for-each> 
    242246                                                </tr>