Jacqui1811
Programmer
When I run an asp page that uses an xml file and an xsl file I get the following message:
Error Type:
msxml2.dll (0x80004005)
The stylesheet does not contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document.
/xmlTest/links.asp, line 71
Both the pages are in the same directory as the asp page and are part of a virtual web site.
I have the below code in my asp page loading the documents.
<%
dim objDoc
dim objStylesheet
set objDoc = server.CreateObject("Microsoft.XMLDOM"
set objStylesheet = server.CreateObject("Microsoft.XMLDOM"
objDoc.async="false"
objStylesheet.async="false"
objDoc.load server.mappath("links.xml"
objStylesheet.load server.mappath("links.xsl"
response.write (objDoc.transformNode(objStylesheet))
%>
The xsl and xml sheets are displaying okay when I load them into the browser on their own so they are well formed.
I have
Can anyone help me ?
Thanks
J
Error Type:
msxml2.dll (0x80004005)
The stylesheet does not contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document.
/xmlTest/links.asp, line 71
Both the pages are in the same directory as the asp page and are part of a virtual web site.
I have the below code in my asp page loading the documents.
<%
dim objDoc
dim objStylesheet
set objDoc = server.CreateObject("Microsoft.XMLDOM"
set objStylesheet = server.CreateObject("Microsoft.XMLDOM"
objDoc.async="false"
objStylesheet.async="false"
objDoc.load server.mappath("links.xml"
objStylesheet.load server.mappath("links.xsl"
response.write (objDoc.transformNode(objStylesheet))
%>
The xsl and xml sheets are displaying okay when I load them into the browser on their own so they are well formed.
I have
Can anyone help me ?
Thanks
J