Tabulek #15: více tabulátorů.
authorFrantišek Kučera <franta-hg@frantovo.cz>
Thu, 05 Jan 2012 16:24:56 +0100
changeset 50 ae8222d2c903
parent 49 0be359e4c06f
child 51 df1f942f7b69
Tabulek #15: více tabulátorů.
šablona/stránka.xsl
--- a/šablona/stránka.xsl	Thu Jan 05 16:19:22 2012 +0100
+++ b/šablona/stránka.xsl	Thu Jan 05 16:24:56 2012 +0100
@@ -227,7 +227,7 @@
     		<xsl:variable name="tělo" select="substring-after($data, '&#10;')"/>
     		<thead>
     			<tr>
-    				<xsl:for-each select="tokenize($hlavička, '\t')">
+    				<xsl:for-each select="tokenize($hlavička, '\t+')">
     					<xsl:if test="normalize-space(.)">
 							<td><xsl:value-of select="normalize-space(.)"/></td>
 						</xsl:if>
@@ -238,7 +238,7 @@
 				<xsl:for-each select="tokenize($tělo, '\n')">
 					<xsl:if test="normalize-space(.)">
 						<tr>
-							<xsl:for-each select="tokenize(., '\t')">
+							<xsl:for-each select="tokenize(., '\t+')">
 								<xsl:if test="normalize-space(.)">
 									<td><xsl:value-of select="normalize-space(.)"/></td>
 								</xsl:if>