日期:2014-05-17  浏览次数:20786 次

求大虾帮忙,xslt 实现文本框,文本框不能编辑问题,在线等!!!!!
我在xslt里面写了一个文本框,我运行后发现这个文本框不能编辑,希望哪位xslt高手能帮我解决,急!!!!在线等,下面是代码:


<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xsl:template match="/">
<table border="0" cellspacing="0" cellpadding="1" width="100%" height="100%" id="tabBusEnrich">
<tr>
<td align="center" style="width:10%">
<input type="checkbox" onclick="JetsenWeb.Form.checkAllItems('chkEnrich',this.checked);checkedAllTaskName();" id="chkBusCheckAll"></input>
</td>
<td align="center" style="width:20%"><b>系统编码</b></td>
<td align="center" style="width:20%"><b>系统名称</b></td>
<td align="center" style="width:20%"><b>简称</b></td>
<td align="center" style="width:30%"><b>报表名称</b></td>
</tr>
<xsl:for-each select="RecordSet/Record">
<tr style="cursor:hand;">
<td align="center" width="10%">
<input type="checkbox" name="chkEnrich" id="chk{BUSINESSID}" onclick="checkedTaskName('{BUSINESSID}','{BUSINESSNAME}');" value="{BUSINESSID}"></input>
</td>
<td align="center" style="white-space:nowrap" title="{BUSINESSID}" width="20%"><xsl:value-of  select="BUSINESSID"/></td>
<td align="center" style="white-space:nowrap" title="{BUSINESSNAME}" width="20%"><xsl:value-of  select="BUSINESSNAME"/></td>
<td align="center" style="white-space:nowrap" title="{ABBREVIATION}" width="20%"><xsl:value-of  select="ABBREVIATION"/></td>
<td align="center">
<input align="left" type="text" class="input" id="{BUSINESSID}" width="30%"/>
</td>
</tr>
</xsl:for-each>
</table>
<xsl:for-each select="RecordSet/Record1">
<input type="hidden" value="{TotalCount}" id="hid_EnrichCount" />
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

------解决方案--------------------
贴出你的xsl文件
------解决方案--------------------
<input align="left" type="text" class="input" id="{BUSINESSID}" width="30%"/>
看看你的css 中input的样式表是不是设置disabled或者readonly了