generating XSL with ASP
-
I'd like to generate an XSL using ASP3.0 I've already written the code to make the XSL, but when loading it in to another ASP-page so that it can style a XML, 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. This while the beginning of the XSL-page clearly makes a root-element: <% Response.ContentType = "text/xml" Response.Expires = 0 Set result = Server.CreateObject("Microsoft.XMLDOM") %> <% '// add a node to the result tree for the stylesheet declaration Set oNewNode = result.createNode("element","xsl:stylesheet", "http://www.w3.org/1999/XSL/Transform") oNewNode.setAttribute "version","1.0" oNewNode.setAttribute "xmlns:xsl","http://www.w3.org/1999/XSL/Transform" result.appendChild(oNewNode) '// the stylesheet declaration is the outermost grouping tag. It is the root '// element and parent to all other elements Set root = result.documentElement ... What might be a sollution to fix this?
-
I'd like to generate an XSL using ASP3.0 I've already written the code to make the XSL, but when loading it in to another ASP-page so that it can style a XML, 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. This while the beginning of the XSL-page clearly makes a root-element: <% Response.ContentType = "text/xml" Response.Expires = 0 Set result = Server.CreateObject("Microsoft.XMLDOM") %> <% '// add a node to the result tree for the stylesheet declaration Set oNewNode = result.createNode("element","xsl:stylesheet", "http://www.w3.org/1999/XSL/Transform") oNewNode.setAttribute "version","1.0" oNewNode.setAttribute "xmlns:xsl","http://www.w3.org/1999/XSL/Transform" result.appendChild(oNewNode) '// the stylesheet declaration is the outermost grouping tag. It is the root '// element and parent to all other elements Set root = result.documentElement ... What might be a sollution to fix this?
Why do you want to do this ? Why not generate it with XSL ? Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002