<xsl:variable name="calculateHours" select="number(concat(substring-before(ToTime, ':'), '')) - number(concat(substring-before(FromTime, ':'), ''))"/>
<xsl:if test="concat(substring-before(FromTime, ':'), ':00') = $Hour">
<td align="center" valign="top" class="classCell" rowspan="$calculateHours">
sad
</td>
</xsl:if>
但是我现在如何$calculateHours
使用
<td align="center" valign="top" class="classCell" rowspan="$calculateHours">
$calculateHours
不转换为数字