根据xsl变量决定页面某些属性
首先定义xsl变量
<xsl:variable name="autoMode" select="item/autoMode"/>
然后进行判断
<tr>
<th width="" nowrap="">自动购买</th>
<td>
<input type="radio" name="autoMode" value="1" onclick="doItDoYouWant(this)">
<xsl:if test="$autoMode='1' ">
<xsl:attribute name="checked">
</xsl:attribute>
</xsl:if>
</input>
</td>
</tr>
或者
<xsl:for-each select="record">
<tr>
<td align="center" bgcolor="#FFFFFF">
<xsl:value-of disable-output-escaping="yes" select="CC_ApplicationNO"/>
</td>
<td align="center" bgcolor="#FFFFFF">
<xsl:if test="CC_AppliState = '10'">您的申请件正在审核中</xsl:if>
</td>
</tr>
</xsl:for-each>