

Java技术
2005: 03 04 05 06 07 08
09 10 11 12
2006: 01 02
Asp.net
2005: 07 08 09 10 11 12
2006: 01 02

根据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>