OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Potential problem with ASP method TransformNode ( This is an XML ? )

[ Lists Home | Date Index | Thread Index ]

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/




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS