225 <xsl:variable name="data" select="replace(replace(text(), '^\s+', ''),'\s+$','')"/> |
225 <xsl:variable name="data" select="replace(replace(text(), '^\s+', ''),'\s+$','')"/> |
226 <xsl:variable name="hlavička" select="substring-before($data, ' ')"/> |
226 <xsl:variable name="hlavička" select="substring-before($data, ' ')"/> |
227 <xsl:variable name="tělo" select="substring-after($data, ' ')"/> |
227 <xsl:variable name="tělo" select="substring-after($data, ' ')"/> |
228 <thead> |
228 <thead> |
229 <tr> |
229 <tr> |
230 <xsl:for-each select="tokenize($hlavička, '\t')"> |
230 <xsl:for-each select="tokenize($hlavička, '\t+')"> |
231 <xsl:if test="normalize-space(.)"> |
231 <xsl:if test="normalize-space(.)"> |
232 <td><xsl:value-of select="normalize-space(.)"/></td> |
232 <td><xsl:value-of select="normalize-space(.)"/></td> |
233 </xsl:if> |
233 </xsl:if> |
234 </xsl:for-each> |
234 </xsl:for-each> |
235 </tr> |
235 </tr> |
236 </thead> |
236 </thead> |
237 <tbody> |
237 <tbody> |
238 <xsl:for-each select="tokenize($tělo, '\n')"> |
238 <xsl:for-each select="tokenize($tělo, '\n')"> |
239 <xsl:if test="normalize-space(.)"> |
239 <xsl:if test="normalize-space(.)"> |
240 <tr> |
240 <tr> |
241 <xsl:for-each select="tokenize(., '\t')"> |
241 <xsl:for-each select="tokenize(., '\t+')"> |
242 <xsl:if test="normalize-space(.)"> |
242 <xsl:if test="normalize-space(.)"> |
243 <td><xsl:value-of select="normalize-space(.)"/></td> |
243 <td><xsl:value-of select="normalize-space(.)"/></td> |
244 </xsl:if> |
244 </xsl:if> |
245 </xsl:for-each> |
245 </xsl:for-each> |
246 </tr> |
246 </tr> |