I'm going around in circles, please help!
I have written an xml file to a string with asp.
Then I'm using an external and well formatted (and validated!) xsl document to get a simple xslt output. (with this namespace if it matters: <xsl:stylesheet xmlns:xsl=" version="1.0">)
I am transforming the two together with asp and assigning the output to a session variable, and then just writing that out to the browser.
Sounds straigt forward enough, but what is happening is the html source of the output page shows the xsl file, instead of the xml result I want transformed. no error, just the exact xsl page.
Since I just started using the Xml 3.0 parser. I am wondering if one of my object/method references are incorrect.
Would you take a look? Any suggestions would be appreciated, I keep going around in circles with this...
Here is where I think the problem is...
'Load the XML
set xml = Server.CreateObject("Microsoft.XMLDOM"
xml.async = false
xml.loadXML(Session("XMLMenuData")
'Load the XSL
set xsl = Server.CreateObject("Microsoft.XMLDOM"
xsl.async = false
xsl.load(Server.MapPath("/applications/library/xml/nav.xsl")
'Transform the file
Session("strXMLMenuData"=xml.transformNode(xsl)
***'Response.Write(Session("strXMLMenuData")
this line right here, writes the XSL document to the browser html source without transforming it and the html page is left blank.*******
Can anyone keep me from going crazy with this? I'm almost there!
Thanks, Liz
I have written an xml file to a string with asp.
Then I'm using an external and well formatted (and validated!) xsl document to get a simple xslt output. (with this namespace if it matters: <xsl:stylesheet xmlns:xsl=" version="1.0">)
I am transforming the two together with asp and assigning the output to a session variable, and then just writing that out to the browser.
Sounds straigt forward enough, but what is happening is the html source of the output page shows the xsl file, instead of the xml result I want transformed. no error, just the exact xsl page.
Since I just started using the Xml 3.0 parser. I am wondering if one of my object/method references are incorrect.
Would you take a look? Any suggestions would be appreciated, I keep going around in circles with this...
Here is where I think the problem is...
'Load the XML
set xml = Server.CreateObject("Microsoft.XMLDOM"
xml.async = false
xml.loadXML(Session("XMLMenuData")
'Load the XSL
set xsl = Server.CreateObject("Microsoft.XMLDOM"
xsl.async = false
xsl.load(Server.MapPath("/applications/library/xml/nav.xsl")
'Transform the file
Session("strXMLMenuData"=xml.transformNode(xsl)
***'Response.Write(Session("strXMLMenuData")
this line right here, writes the XSL document to the browser html source without transforming it and the html page is left blank.*******
Can anyone keep me from going crazy with this? I'm almost there!
Thanks, Liz