J
Justin Woodcock
Hi,
Is it possible to call an asp file that generates xslt using
Objectname.load ? I have tried this script :
<%
Dim objXML, objXSL
Set objXML = Server.CreateObject("Msxml2.DOMDocument.4.0")
Set objXSL = Server.CreateObject("Msxml2.DOMDocument.4.0")
objXML.async = False
objXSL.async = False
objXML.setProperty "ServerHTTPRequest", true
objXML.load
("http://www.ourdomain.com/sales/atdxmlfeed.asp?Ga_Id=" &
Request("Ga_Id") )
objXSL.setProperty "ServerHTTPRequest", true
objXSL.load "http://www.ourdomain.com/sales/stylesheet01.asp?Ga_Id=" &
Request("Ga_Id") ) **** this is the line with the problem....
objXML.transformNodeToObject objXSL, Response
%>
But when I run it on the browser, I get this error :
******
msxml4.dll error '80004005'
The stylesheet does not contain a document element. The stylesheet may be
empty, or it may not be a well-formed XML document.
********
When I change stylesheet01.asp to stylesheet01.xsl (stripping the asp out),
it works. The xml file (atdxmlfeed.asp) works too, and I assumed that what
would be good for one, would be good for the other.
Thanks in advance for any advice received.
Justin Woodcock
Is it possible to call an asp file that generates xslt using
Objectname.load ? I have tried this script :
<%
Dim objXML, objXSL
Set objXML = Server.CreateObject("Msxml2.DOMDocument.4.0")
Set objXSL = Server.CreateObject("Msxml2.DOMDocument.4.0")
objXML.async = False
objXSL.async = False
objXML.setProperty "ServerHTTPRequest", true
objXML.load
("http://www.ourdomain.com/sales/atdxmlfeed.asp?Ga_Id=" &
Request("Ga_Id") )
objXSL.setProperty "ServerHTTPRequest", true
objXSL.load "http://www.ourdomain.com/sales/stylesheet01.asp?Ga_Id=" &
Request("Ga_Id") ) **** this is the line with the problem....
objXML.transformNodeToObject objXSL, Response
%>
But when I run it on the browser, I get this error :
******
msxml4.dll error '80004005'
The stylesheet does not contain a document element. The stylesheet may be
empty, or it may not be a well-formed XML document.
********
When I change stylesheet01.asp to stylesheet01.xsl (stripping the asp out),
it works. The xml file (atdxmlfeed.asp) works too, and I assumed that what
would be good for one, would be good for the other.
Thanks in advance for any advice received.
Justin Woodcock