<html>
<头>
<title>笨狼XSLT练习器_ </title>
<样式>
身体
{
字体大小:12;
背景:#Dadada;
左键:20;
}
#blockxml
{
字体家庭:Verdana;
字体大小:12px;
溢出:滚动;
身高:400;
顶部:40;
左:20;
}
输入
{
宽度:350;
}
#blockxsl
{
位置:绝对;
字体家庭:Verdana;
字体大小:12px;
溢出:滚动;
身高:400;
顶部:40;
}
#给我看看
{
字体家庭:Verdana;
字体大小:12px;
身高:100;
溢出:可见;
顶部:300;
左:20;
}
</style>
</head>
<身体>
<inputType =“ file” id =“ filexml” onChange =“ showxml();”/> xml
<inputType =“ file” id =“ filexsl” onChange =“ showxsl();”/> xsl
<buttononClick =“ Parsexml();”>开始转换</button>
<buttononClick =“ browse();”>预览结果</button>
<textareAid =“ blockxml”> </textarea>
<textareAid =“ blockxsl”> </textarea>
<textaReAid =“ showme”> </textarea>
<ScriptLanguage =“ JavaScript”>
window.resizeto(window.screen.availwidth,window.screen.availheight);
window.moveto(0,0);
blockxml.Style.Width = parseint(window.screen.availwidth*0.46);
blockxsl.Style.Width = blockxml.Style.Width;
blockxsl.Style.Left = Parseint(window.screen.availwidth*0.46)+30;
showme.style.width = parseint(window.screen.availwidth*0.92)+10;
varfso
fso = newActiveXobject(“ scripting.filesystemobject”);
varxmldoc,xsldoc;
xmldoc = newActivexObject(“ msxml2.domdocument”);
xsldoc = newActivexObject(“ msxml2.domdocument”);
xmldoc.async = false;
xsldoc.async = false;
functionBrowse()
{
varwin = window.open();
win.document.write(showme.value);