<html>
<Evista>
<title> 笨狼 xslt 练习器 _ 错新站长站 </title>
<estilo>
cuerpo
{
tamaño de fuente: 12;
Antecedentes: #Dadada;
margen-izquierda: 20;
}
#BLOCKXML
{
Font-Family: Verdana;
tamaño de fuente: 12px;
desbordamiento: desplazarse;
Altura: 400;
arriba: 40;
Izquierda: 20;
}
aporte
{
Ancho: 350;
}
#BLOCKXSL
{
Posición: Absoluto;
Font-Family: Verdana;
tamaño de fuente: 12px;
desbordamiento: desplazarse;
Altura: 400;
arriba: 40;
}
#muéstrame
{
Font-Family: Verdana;
tamaño de fuente: 12px;
Altura: 100;
desbordamiento: visible;
arriba: 300;
Izquierda: 20;
}
</style>
</ablo>
<Body>
<InputType = "file" id = "fileXml" onchange = "showxml ();"/> xml
<InputType = "file" id = "fileXsl" onchange = "showxsl ();"/> xsl
<buttonOnClick = "parsexml ();"> 开始转换 </boton>
<buttonOnClick = "browse ();"> 预览结果 </boton>
<textAeaId = "blockxml"> </extarea>
<textAeaId = "blockxsl"> </extarea>
<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, xsdoc;
xmldoc = newActivexObject ("msxml2.domDocument");
xsdoc = newActivexObject ("msxml2.domDocument");
xmldoc.async = false;
xsdoc.async = false;
functionBrowse ()
{
varwin = window.open ();
win.document.write (showMe.Value);