<Html>
<head>
<title> 笨狼 xslt 练习器 _ 错新站长站 </title>
<tyle>
tubuh
{
Ukuran font: 12;
Latar belakang: #dadada;
margin-kiri: 20;
}
#blockxml
{
Font-Family: Verdana;
font-size: 12px;
meluap: gulir;
Tinggi: 400;
Atas: 40;
Kiri: 20;
}
masukan
{
Lebar: 350;
}
#blockxsl
{
Posisi: Absolute;
Font-Family: Verdana;
font-size: 12px;
meluap: gulir;
Tinggi: 400;
Atas: 40;
}
#showme
{
Font-Family: Verdana;
font-size: 12px;
Tinggi: 100;
meluap: terlihat;
Atas: 300;
Kiri: 20;
}
</tyle>
</head>
<body>
<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"> </pextarea>
<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);