[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Potential problem with ASP method TransformNode ( This is

  • To: <michael.h.kay@n...>,"tariq abdur-rahim" <ecliptoid330@y...>,<xml-dev@l...>
  • Subject: RE: Potential problem with ASP method TransformNode ( This is an XML ? )
  • From: "Shioupyn Shen" <sshen@s...>
  • Date: Mon, 1 Apr 2002 08:04:21 -0800
  • Thread-index: AcHZlPyYI7ZlNqd0RZGwIYcOuEkXHQAAJ+4g
  • Thread-topic: Potential problem with ASP method TransformNode ( This is an XML ? )

transformnode asp
The latest release of MSXML 4.0 does not support version independent progid, i.e., there is no more replace mode.  If you want to use MSXML 4.0, you need to add ".4.0" at the end of the progid.  For example, use "MSXML2.DOMDocument.4.0" instead of "MSXML2.DOMDocument".

The new approach ensures backward compatibility.  The new problem now is that you must change "all" of your source code to a newer version when you want to move to the newer version, e.g., 5.0, in the future.

Shioupyn Shen
mailto:shioupyn@y...
650-906-5085 (cellular), 650-625-0970 (home)



-----Original Message-----
From: Michael Kay [mailto:michael.h.kay@n...]
Sent: Monday, April 01, 2002 7:49 AM
To: 'tariq abdur-rahim'; xml-dev@l...
Subject: RE:  Potential problem with ASP method TransformNode (
This is an XML ? )


You probably need to install MSXML3 in replace mode.

See the MSXML FAQ at www.netcrucible.com

Michael Kay
Software AG
home: Michael.H.Kay@n...
work: Michael.Kay@s... 

> -----Original Message-----
> From: tariq abdur-rahim [mailto:ecliptoid330@y...]
> Sent: 31 March 2002 03:07
> To: xml-dev@l...
> Subject:  Potential problem with ASP method TransformNode (
> This is an XML ? )
> 
> 
> Hey all:
> 
> 
> Do any of you XML gurus out there know whether the ASP
> "TransformNode" method works with MSXML2 as well as in
> MSXML3? 
> 
> I'm having the following problem on my Web site
> (Windows-hosted) but not on my PC in local mode, where
> it works quite well (in IIS under Windows 2000 Pro): 
> 
> On the Web site, the following ASP script manages to
> call up my XSL stylesheet but seems not to apply it to
> the XML document (only the HTML part of the stylesheet
> is output to the screen, none of the XML entities are
> getting processed). However, when I call the same XML
> document directly in the browser, the stylesheet is
> correctly applied. It is just not applied when I call
> it via the ASP script below. (Again, in localhost on
> my PC operating IIS Windows 2000 Pro the processing
> gets done just fine.) 
> 
> Any brilliant ideas as to why the stylesheet
> "guestbook.xls" is not getting applied to the XML
> document "guestbook.xml"?
> 
> Source Code Follows:
> 
> ==========
> 
> <%
> Dim oSource, oStyle
> 
> 'Create the XML DOM object for the XML file
> Set oSource = Server.CreateObject("Microsoft.XMLDOM")
> oSource.async = False
> 
> 'Load the XML file into the DOM object
> oSource.load server.mappath("/") &
> "\laura\special\XML\guestbook\guestbook.xml"
> 
> 'Create the XML DOM object for the XSL stylesheet
> Set oStyle=Server.CreateObject("Microsoft.XMLDOM")
> oStyle.async = False
> 
> 'Load the XSL file into the Style DOM object
> oStyle.Load Server.mappath("/") &
> "\laura\special\XML\guestbook\guestbook.xsl"
> 
> 'Write the document to the browser
> Response.Write oSource.TransformNode(oStyle)		
> 
> %>
> 
> 
> ==========
> 
> Thanks in advance,
> 
> =====
> m.nelson
> Web Developer
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Greetings - send holiday greetings for Easter, Passover
> http://greetings.yahoo.com/
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> 
> The list archives are at http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
> 

-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
initiative of OASIS <http://www.oasis-open.org>

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl>


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.