您的位置:首页 > Web前端 > HTML

如何将xsl中的变量转化为html的属性

2006-05-07 16:41 204 查看
首先定义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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: