XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 30th, 2002, 06:02 PM
Laura Borealis Laura Borealis is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Posts: 2 Laura Borealis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Potential problem with ASP method TransformNode (?)

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"?

Code:
<%
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)		

%>


Any other suggestions as to the source of the problem would be well appreciated!

(Also do you know whether there are still some Web hosts out there that are using MSXML2 instead of MSXML3?)

Laura

Reply With Quote
  #2  
Old April 1st, 2002, 10:33 AM
ecliptoid330 ecliptoid330 is offline
The Architect
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: Orb-3
Posts: 16 ecliptoid330 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
You probably need to install MSXML3 in replace mode.

See the MSXML FAQ at www.netcrucible.com/

Reply With Quote
  #3  
Old April 1st, 2002, 10:35 AM
ecliptoid330 ecliptoid330 is offline
The Architect
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: Orb-3
Posts: 16 ecliptoid330 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.


Finally, you may want to subscribe to the following list: xml-dev@lists.xml.org. Sometihings get a little heavy, but it is a very useful and informative list to be on.<smile />

Reply With Quote
  #4  
Old April 4th, 2002, 12:17 PM
Laura Borealis Laura Borealis is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Posts: 2 Laura Borealis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy TransformNode problem

My Web host is using MSXML3, so it seems that the parser version is not the issue here.
Laura

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Potential problem with ASP method TransformNode (?)

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap