根据xsl变量决定页面某些属性

发表于:2007-07-01来源:作者:点击数: 标签:
 

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

原文转自:http://www.ltesting.net