<CFOBJECT TYPE="COM" NAME="xml" CLASS="MSXML2.FreeThreadedDOMDocument"
ACTION="CREATE">
<cfset xml.async = "false">
<CFSET OK = xml.load("d:\inetpub\wwwroot\myfile.xml")>
<CFOBJECT TYPE="COM" NAME="xsl" CLASS="MSXML2.FreeThreadedDOMDocument"
ACTION="CREATE">
<cfset xsl.async = "false">
<CFSET OK = xsl.load("d:\inetpub\wwwroot\myfile.xsl")>
<CFSET HTML=xml.transformNode(xsl)>
<CFOUTPUT>#HTML#</CFOUTPUT>

JoshMEagle wrote:
> 
> The following code opens and outputs an XML file based on an XSL template
> using ASP .... I was wondering if there are similar functions in CF or if
> someone could point me in the right direction towards functions or whatnot
> .....
> 
> THANKS!
> 
> ASP Code Listing (sorry, I know y'all hate ASP):
> 
> <%
> 'Load the XML
> set = Server.CreateObject("Microsoft.XMLDOM")
> xml.async = false
> xml.load(Server.MapPath("myfile.xml"))
> 
> 'Load the XSL
> set xsl = Server.CreateObject("Microsoft.XMLDOM")
> xsl.async = false
> xsl.load(Server.MapPath("myfile.xsl"))
> 
> Response.Write(xml.transformNode(xsl))
> %>
> 
> Joshua Miller
> Web Development
> Eagle Technologies Group
> Technology Solutions for the Next Generation
> www.eagletgi.com
> [EMAIL PROTECTED]
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to