Pro tvorbu tabulek #15 se bude používat tabulátor (místo středníku).
1.1 --- a/vstup/služby.xml Thu Jan 05 16:00:01 2012 +0100
1.2 +++ b/vstup/služby.xml Thu Jan 05 16:19:22 2012 +0100
1.3 @@ -14,10 +14,10 @@
1.4 <p>Fusce eu libero sit amet mauris molestie suscipit. Integer porttitor euismod luctus. Sed elementum quam et quam pharetra tincidunt. Pellentesque vitae augue quis mi blandit dapibus. Vestibulum iaculis magna sit amet nisl tristique at consectetur odio blandit. Proin aliquam lectus ac arcu condimentum tempus. Suspendisse potenti. Suspendisse porttitor euismod accumsan. Sed nibh lacus, laoreet id consequat gravida, eleifend eget lectus. Curabitur accumsan, nisi at elementum aliquam, nisl nulla volutpat lorem, ac elementum metus lacus eget lectus. Praesent odio nulla, porttitor vitae hendrerit vel, ullamcorper in velit. Sed in est ipsum, iaculis accumsan sem. Integer pretium ultrices justo a mattis. Nullam id lacus in lectus bibendum tempor. Nulla non viverra eros. Praesent scelerisque, nisi et placerat convallis, nisi nulla lobortis mauris, eu ultricies est mi ac orci. Suspendisse ullamcorper dapibus interdum. Curabitur ac metus eros, sed venenatis sapien.</p>
1.5
1.6 <m:tabulka>
1.7 - Velikost ptáka;Cena za jedno krmení
1.8 - malý;250
1.9 - střední;500
1.10 - velký;1000
1.11 + Velikost ptáka Cena za jedno krmení
1.12 + malý 250
1.13 + střední 500
1.14 + velký 1000
1.15 </m:tabulka>
1.16
1.17 <p>Dodáváme pouze prvotřídní krmivo.</p>
2.1 --- a/šablona/stránka.xsl Thu Jan 05 16:00:01 2012 +0100
2.2 +++ b/šablona/stránka.xsl Thu Jan 05 16:19:22 2012 +0100
2.3 @@ -227,8 +227,10 @@
2.4 <xsl:variable name="tělo" select="substring-after($data, ' ')"/>
2.5 <thead>
2.6 <tr>
2.7 - <xsl:for-each select="tokenize($hlavička, ';')">
2.8 - <td><xsl:value-of select="normalize-space(.)"/></td>
2.9 + <xsl:for-each select="tokenize($hlavička, '\t')">
2.10 + <xsl:if test="normalize-space(.)">
2.11 + <td><xsl:value-of select="normalize-space(.)"/></td>
2.12 + </xsl:if>
2.13 </xsl:for-each>
2.14 </tr>
2.15 </thead>
2.16 @@ -236,8 +238,10 @@
2.17 <xsl:for-each select="tokenize($tělo, '\n')">
2.18 <xsl:if test="normalize-space(.)">
2.19 <tr>
2.20 - <xsl:for-each select="tokenize(., ';')">
2.21 - <td><xsl:value-of select="normalize-space(.)"/></td>
2.22 + <xsl:for-each select="tokenize(., '\t')">
2.23 + <xsl:if test="normalize-space(.)">
2.24 + <td><xsl:value-of select="normalize-space(.)"/></td>
2.25 + </xsl:if>
2.26 </xsl:for-each>
2.27 </tr>
2.28 </xsl:if>