šablona/stránka.xsl
changeset 49 0be359e4c06f
parent 46 c4ad66b1202e
child 50 ae8222d2c903
--- a/šablona/stránka.xsl	Thu Jan 05 16:00:01 2012 +0100
+++ b/šablona/stránka.xsl	Thu Jan 05 16:19:22 2012 +0100
@@ -227,8 +227,10 @@
     		<xsl:variable name="tělo" select="substring-after($data, '&#10;')"/>
     		<thead>
     			<tr>
-    				<xsl:for-each select="tokenize($hlavička, ';')">
-						<td><xsl:value-of select="normalize-space(.)"/></td>
+    				<xsl:for-each select="tokenize($hlavička, '\t')">
+    					<xsl:if test="normalize-space(.)">
+							<td><xsl:value-of select="normalize-space(.)"/></td>
+						</xsl:if>
 					</xsl:for-each>
     			</tr>
     		</thead>
@@ -236,8 +238,10 @@
 				<xsl:for-each select="tokenize($tělo, '\n')">
 					<xsl:if test="normalize-space(.)">
 						<tr>
-							<xsl:for-each select="tokenize(., ';')">
-								<td><xsl:value-of select="normalize-space(.)"/></td>
+							<xsl:for-each select="tokenize(., '\t')">
+								<xsl:if test="normalize-space(.)">
+									<td><xsl:value-of select="normalize-space(.)"/></td>
+								</xsl:if>
 							</xsl:for-each>
 						</tr>
 					</xsl:if>