日期:2014-05-16  浏览次数:20518 次

急求,xml +xsl +js 更改input文本框内容
A.xml
<?xml version="1.0" encoding="gb2312" ?> 
<?xml-stylesheet type = "text/xsl" href = "A.xsl"?>
<bookstore>
 <td>  hello </td>
 </bookstore>

A.xsl

<?xml version = "1.0" encoding = "gb2312"?>
<xsl:stylesheet version = "1.0" xmlns:xsl = "http://www.w3.org/1999/XSL/Transform">
<xsl:template name = "HTML_HEAD">
<script type = "text/javascript" language = "javascript" src = "A.js">
</script>
</xsl:template>
    <xsl:template match = "/">
    <xsl:param name = "sre_res"/>
            <table id = "table1" class = "content_body_area" border = "0"       cellpaddng = "0" cellspacing = "0">
                    <tr class = "row135">  
                        <td class = "content_item" widths = "25%">
                        </td>


                        <td class = "content_value">
                             <input type = "text" class = "textbox" id = "text-aging-time1" style = "width:400"  value = "hello"> 
                              
                             </input>
                        </td>
                        <td class = "content_value">
                             <input type = "text" class = "textbox" id = "text-aging-time2" style = "width:400" value = "jack"> 
                              
                             </input>