<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);