first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

ASP JScript and XML/XSL Code: Rendering HTML from Static XML/XSL Files

<%@ LANGUAGE = JScript %> <% // Set the source and style sheet locations here var sourceFile = Server.MapPath("simple.xml"); var styleFile = Server.MapPath("simple.xsl");

// Load the XML 
var source = Server.CreateObject(&quot;Microsoft.XMLDOM&quot;);
source.async = false;
source.load(sourceFile);

// Load the XSL
var style = Server.CreateObject(&quot;Microsoft.XMLDOM&quot;);
style.async = false;
style.load(styleFile);

source.transformNodeToObject(style, Response);

%>

mod date: 2002-01-05T17:24:42.000Z