<html>
<head>
<title>笨狼xslt
<style>
体
{
フォントサイズ:12;
背景:#dadada;
マージン左:20;
}
#blockxml
{
フォントファミリー:Verdana;
フォントサイズ:12px;
オーバーフロー:スクロール;
高さ:400;
トップ:40;
左:20;
}
入力
{
幅:350;
}
#blockxsl
{
位置:絶対;
フォントファミリー:Verdana;
フォントサイズ:12px;
オーバーフロー:スクロール;
高さ:400;
トップ:40;
}
#見せて
{
フォントファミリー:Verdana;
フォントサイズ:12px;
高さ:100;
オーバーフロー:可視;
トップ:300;
左:20;
}
</style>
</head>
<body>
<inputtype = "file" id = "filexml" onchange = "showxml();"/> xml
<inputtype = "file" id = "filexsl" onchange = "showxsl();"/> xsl
<buttonNclick = "parsexml();">开始转换</button>
<buttonNclick = "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);