<html>
<kopf>
<title> 笨狼 xslt 练习器 _ 错新站长站 </title>
<Styles>
Körper
{
Schriftgröße: 12;
Hintergrund: #dadada;
Rand-Links: 20;
}
#blockxml
{
Schriftfamilie: Verdana;
Schriftgröße: 12px;
Überlauf: Scrollen;
Höhe: 400;
Top: 40;
links: 20;
}
Eingang
{
Breite: 350;
}
#blockxsl
{
Position: absolut;
Schriftfamilie: Verdana;
Schriftgröße: 12px;
Überlauf: Scrollen;
Höhe: 400;
Top: 40;
}
#zeig mir
{
Schriftfamilie: Verdana;
Schriftgröße: 12px;
Höhe: 100;
Überlauf: sichtbar;
Oben: 300;
links: 20;
}
</style>
</Head>
<body>
<InputType = "Datei" 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>
<criptuanguage = "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 = newActActXObject ("scripting.FilesSystemObject");
varxmldoc, xsldoc;
xmldoc = newActActXObject ("msxml2.domdocument");
xsldoc = newActActXObject ("msxml2.domdocument");
xmldoc.async = false;
XSldoc.async = false;
functionBrowse ()
{
varwin = window.open ();
win.document.write (showme.value);