šablona/makra/tabulka.xsl
changeset 107 379a2a893fd1
parent 71 895757141bff
child 111 d59023a42d4b
     1.1 --- a/šablona/makra/tabulka.xsl	Sat Jan 07 20:09:44 2012 +0100
     1.2 +++ b/šablona/makra/tabulka.xsl	Thu Jul 05 19:10:42 2012 +0200
     1.3 @@ -68,7 +68,12 @@
     1.4  						<tr>
     1.5  							<xsl:for-each select="tokenize(., $oddělovač)">
     1.6  								<xsl:if test="normalize-space(.)">
     1.7 -									<td><xsl:value-of select="normalize-space(.)"/></td>
     1.8 +									<xsl:element name="td">
     1.9 +										<xsl:if test="number(normalize-space(.))">
    1.10 +											<xsl:attribute name="class">číslo</xsl:attribute>
    1.11 +										</xsl:if>
    1.12 +										<xsl:value-of select="normalize-space(.)"/>
    1.13 +									</xsl:element>
    1.14  								</xsl:if>
    1.15  							</xsl:for-each>
    1.16  						</tr>