<xsl:stylesheet version=„1.0“ xmlns:xsl=„http://www.w3.org/1999/XSL/Transform“>

  <xsl:output method="html" />
  <xsl:key name="key-doprovod" match="row" use="jmeno_doprovod" />       

<xsl:template match=„/“>

      <xsl:apply-templates select="//data"/>
  </xsl:template> 
      
  <xsl:template match="data">
      <table style="width: 100%" class="table table-striped table-hover">
          <thead>
              <tr>                   
                  <th>Pořadí celkové</th>
                  <th>Název</th>
                  
                  <th>Kategorie</th>
                  <th>Body</th>
                  <th>Pořadí v kategori</th>
                  <th>Členové</th>
              </tr>
          </thead>
          <tbody>
              <xsl:apply-templates select="row"/>
          </tbody>
      </table>
  </xsl:template>
  <xsl:template match="row">
      <xsl:variable name="status" select="status"/>
      <xsl:variable name="e_fyziklani_team_id" select="e_fyziklani_team_id"/>
      <tr data-state="{$status}" data-teamid="{$e_fyziklani_team_id}">        
            
          <td>
              <xsl:value-of select="rank_total"/>
          </td>     
          <td>
              <xsl:value-of select="name"/>
          </td>       
          <td>
              <xsl:value-of select="category"/>
          </td> 
          <td>
             <xsl:value-of select="points"/>
          </td>                     
          
          <td>
              <xsl:value-of select="rank_category"/>
          </td>    
           
                 
         
          <td>
              <div class="team-info-container">                   
                  <div>
                      <span class="participant-name">
                          <xsl:value-of select="jmeno_1"/>
                      </span> 
                      <span class="participant-school">
                          <xsl:value-of select="skola_1"/>
                      </span>   
                      <span class="participant-study-year">
                          <xsl:value-of select="rocnik_1"/>
                      </span>       
                  </div>
                   
                  <xsl:if test="jmeno_2 !=''">
                      <div>
                          <span class="participant-name">
                              <xsl:value-of select="jmeno_2"/>
                          </span> 
                          <span class="participant-school">
                              <xsl:value-of select="skola_2"/>
                          </span>   
                          <span class="participant-study-year">
                              <xsl:value-of select="rocnik_2"/>
                          </span>  
                      </div>
                  </xsl:if>
                  <xsl:if test="jmeno_3 !=''">
                      <div>
                          <span class="participant-name">
                              <xsl:value-of select="jmeno_3"/>
                          </span> 
                          <span class="participant-school">
                              <xsl:value-of select="skola_3"/>
                          </span>   
                          <span class="participant-study-year">
                              <xsl:value-of select="rocnik_3"/>
                          </span>      
                      </div>
                  </xsl:if>
                  <xsl:if test="jmeno_4 !=''">
                      <div>
                          <span class="participant-name">
                              <xsl:value-of select="jmeno_4"/>
                          </span> 
                          <span class="participant-school">
                              <xsl:value-of select="skola_4"/>
                          </span>   
                          <span class="participant-study-year">
                              <xsl:value-of select="rocnik_4"/>
                          </span>       
                      </div>
                  </xsl:if>
                  <xsl:if test="jmeno_5 !=''">
                      <div>
                          <span class="participant-name">
                              <xsl:value-of select="jmeno_5"/>
                          </span> 
                          <span class="participant-school">
                              <xsl:value-of select="skola_5"/>
                          </span>   
                          <span class="participant-study-year">
                              <xsl:value-of select="rocnik_5"/>
                          </span>     
                      </div>
                  </xsl:if>
                  <xsl:if test="jmeno_doprovod !=''">
                      <div data-role="doprovod">Doprovod:  <xsl:value-of select="jmeno_doprovod"/></div>
                  </xsl:if>                     
              </div>
          </td>           
      </tr>
  </xsl:template>

</xsl:stylesheet>

Tato stránka využívá cookies pro analýzu provozu. Používáním stránky souhlasíte s ukládáním těchto cookies na vašem počítači.Více informací

Partneři

Pořadatel

Mediální partner


Created with <love/> by ©FYKOS – webmaster@fykos.cz