以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XSL/XSLT/XSL-FO/CSS 』  (http://bbs.xml.org.cn/list.asp?boardid=8)
----  下面是将xls文件在html文件中显示,我用alert可以查看到xls中的内容  (http://bbs.xml.org.cn/dispbbs.asp?boardid=8&rootid=&id=25366)


--  作者:笑三笑
--  发布时间:12/13/2005 6:11:00 PM

--  下面是将xls文件在html文件中显示,我用alert可以查看到xls中的内容
下面是将xls文件在html文件中显示,我用alert可以查看到xls中的内容.为什么用document.all("TableList").innerHTML =trim(ProcSetParam.output)就不行了...确定有TableList这个对像
<script language="JavaScript">
var source = new ActiveXObject("Msxml2.DOMDocument");
var style = new ActiveXObject("Msxml2.FreeThreadedDOMDocument");
var XSLt=new ActiveXObject("Msxml2.XSLTemplate");
source.async = false;
style.async = false;
source.resolveExternals = false;
style.resolveExternals = false;
source.load("Pages.XML");
style.load("Pages.XSL");   
XSLt.stylesheet = style;
ProcSetParam = XSLt.createProcessor();
ProcSetParam.input = source;
ProcSetParam.transform();
document.all("TableList").innerHTML =trim(ProcSetParam.output); 
</script>
--  作者:Qr
--  发布时间:12/14/2005 8:49:00 PM

--  
想不明白,不过
document.write(trim(ProcSetParam.output))
可以输出:)
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
60.547ms