Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. generating XSL with ASP

generating XSL with ASP

Scheduled Pinned Locked Moved XML / XSL
xmlhelpsysadmindata-structuresquestion
2 Posts 2 Posters 6 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bart Meirens
    wrote on last edited by
    #1

    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?

    C 1 Reply Last reply
    0
    • B Bart Meirens

      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?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups