当前位置:开发者网络 >> 技术教程 >> JSP教程 >> 资料/其它 >> 内容
精彩推荐
分类最新教程
分类热点教程
  
根据xsl变量决定页面某些属性
作者:未知
日期:2005-07-06
人气:
投稿:(转贴)
来源:未知
字体:
收藏:加入浏览器收藏
以下正文:
 

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

相关文章: