This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XMLDOM xml to html translation problem
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] XMLDOM xml to html translation problem
- From: "Chris Bayes" <chris at bayes dot co dot uk>
- Date: Wed, 22 Aug 2001 16:40:02 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
Joseph,
Change
set xmlPage = Server.CreateObject("Microsoft.XMLDOM")
To
set xmlPage = Server.CreateObject("Msxml2.DOMDocument")
Or put msxml2 into replace mode with xmlinst.exe
Ciao Chris
XML/XSL Portal
http://www.bayes.co.uk/xml
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of
> Joseph Coffman
> Sent: 22 August 2001 16:22
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] XMLDOM xml to html translation problem
>
>
> I've searched high and low for a solution to this seemingly simple
> problem. I'm using ASP on a win2000 server machine running
> IIS5.0 and
> attempting to translate an xml to html using an xslt script I have
> written. I have found code in numerous places doing this translation
> serverside using the XMLDOM transformNode method. I have
> attempted to copy
> the code but as yet have been unable to make it function
> correctly. Rather
> than printing the translated HTML, it prints the xsl document
> to the client
> browser. Included below is the actual code being used, I
> would appreciate
> any feedback.
>
> thanks
>
> **************************************************************
> ***************
> <%@ LANGUAGE="VBSCRIPT" %>
> <!--#include file="adovbs.inc"-->
>
> <%
> resume_file = Request.querystring("resume")
>
> xml_file = Server.Mappath("xml/" + resume_file)
> xsl_file = Server.Mappath("xml/resume.xsl")
>
> set xmlPage = Server.CreateObject("Microsoft.XMLDOM")
> xmlPage.async = false
> xmlPage.load(xml_file)
>
> set xmlStyle = Server.CreateObject("Microsoft.XMLDOM")
> xmlStyle.async = false
> xmlStyle.load(xsl_file)
>
> Response.Write xmlPage.transformNode(xmlStyle)
> %>
> **************************************************************
> ***************
> At this point the client browser receives the xmlStyle page, NOT the
> translated page. Any idea why?
>
>
>
> Joseph Coffman
> 703 284 8624
> 703 486 4567
> BBN Technologies
> A Verizon Company
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list