šablona/stránka.xsl
changeset 49 0be359e4c06f
parent 46 c4ad66b1202e
child 50 ae8222d2c903
     1.1 --- a/šablona/stránka.xsl	Thu Jan 05 14:49:04 2012 +0100
     1.2 +++ b/šablona/stránka.xsl	Thu Jan 05 16:19:22 2012 +0100
     1.3 @@ -227,8 +227,10 @@
     1.4      		<xsl:variable name="tělo" select="substring-after($data, '&#10;')"/>
     1.5      		<thead>
     1.6      			<tr>
     1.7 -    				<xsl:for-each select="tokenize($hlavička, ';')">
     1.8 -						<td><xsl:value-of select="normalize-space(.)"/></td>
     1.9 +    				<xsl:for-each select="tokenize($hlavička, '\t')">
    1.10 +    					<xsl:if test="normalize-space(.)">
    1.11 +							<td><xsl:value-of select="normalize-space(.)"/></td>
    1.12 +						</xsl:if>
    1.13  					</xsl:for-each>
    1.14      			</tr>
    1.15      		</thead>
    1.16 @@ -236,8 +238,10 @@
    1.17  				<xsl:for-each select="tokenize($tělo, '\n')">
    1.18  					<xsl:if test="normalize-space(.)">
    1.19  						<tr>
    1.20 -							<xsl:for-each select="tokenize(., ';')">
    1.21 -								<td><xsl:value-of select="normalize-space(.)"/></td>
    1.22 +							<xsl:for-each select="tokenize(., '\t')">
    1.23 +								<xsl:if test="normalize-space(.)">
    1.24 +									<td><xsl:value-of select="normalize-space(.)"/></td>
    1.25 +								</xsl:if>
    1.26  							</xsl:for-each>
    1.27  						</tr>
    1.28  					</xsl:if>