xsl:if
xsl:if
类似普通程序语言的
if
条件语句,允许设定节点满足某个条件时,被模板处理。
xsl:if
的语法格式为:
<xsl:if test=
布尔表达式
>
template body
</xsl:if>
template body
</xsl:if>
例如:
<xsl:if test="//**Response/out/annualCompensation/ishift > 0">
<strong>Shift Differential</strong><br />
The amount shown on this statement reflects any shift differential you have received in the past 52
<strong>Shift Differential</strong><br />
The amount shown on this statement reflects any shift differential you have received in the past 52