Subject: Using ASP/IIS to dynamically process XML/XSL (was Re: how to change xsl dynamically?) From: "Garriss Jr.,James P." <jgarriss@xxxxxxxxx> Date: Tue, 14 Sep 1999 08:57:17 -0400 |
<SELECT name="xml"> <OPTION selected value="xmldoc1">XML Doc #1 <OPTION value="xmldoc2">XML Doc #1 <OPTION value="xmldoc3">XML Doc #1 </SELECT>
<SELECT name="xsl"> <OPTION selected value="xsldoc1">XSL Doc #1 <OPTION value="xsldoc2">XSL Doc #2 <OPTION value="xsldoc3">XSL Doc #3 </SELECT>
The XML file is <% =Request.QueryString("xml") %>. <BR> The XSL file is <% =Request.QueryString("xsl") %>. <P><HR><P>
<% ' Note that IE5 must be installed on the server for this to work
' Load the XML document, appending .xml to the filename Set objXML = Server.CreateObject("Microsoft.XMLDOM") objXML.async = False objXML.Load(Server.MapPath(Request.QueryString("xml") + ".xml")) If objXML.parseError.errorcode <> 0 Then Response.write("<error/>") End If
' Load the XSL stylesheet, appending .xsl to the filename Set domstyle = Server.CreateObject("Microsoft.XMLDOM") domstyle.async = False domStyle.Load(Server.MapPath(Request.QueryString("xsl") + ".xsl")) If domStyle.parseError.errorcode <> 0 Then Response.write("<error/>") End If
' Dynamically process the XSL against the XML ' only HTML is returned, allowing any web client to be used Response.Write(objXML.transformNode(domStyle)) %>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: how to change xsl dynamically?, Mark Stemp | Thread | RE: how to change xsl dynamically?, Sam.Walker |
Re: Merging two documents, James Clark | Date | Re: Using ASP/IIS to dynamically pr, Larry Mason |
Month |