Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server-side XML

Status
Not open for further replies.

flanakin

Programmer
Mar 21, 2000
158
US
For some reason, when I do my XSLT transformation using ASP, I get the following error:

---------
msxml3.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.
---------

Any ideas? My code works beautifully when I do it client-side. Here's the code I used to do the transformation:

---------
Dim xml, xsl

' load xml
set xml = Server.CreateObject("Microsoft.XMLDOM")
xml.async = false
xml.load("cls_tabs.asp?xml")

'Load the XSL
set xsl = Server.CreateObject("Microsoft.XMLDOM")
xsl.async = false
xsl.load("cls_tabs.asp?xsl")

'Transform the file
Response.Write(xml.TransformNode(xsl))
---------

Any help is appreciated. Thanks. ________________________________________
Michael C Flanakin
Indigo Web Systems
flanakinm@indigows.com
 
I had the exact same problem - make sure your style sheet is loading properly - it turned out I loaded mine into the xml object rather than the xsl one by accident.

<bb/>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top