From about a year ago, I have this simple Menu system that uses XML as a datasource. An ASP filters it through a XSL file to produce a DHTML/JavaScript menu.
I am using "<?xml version="1.0"?>"
And my ASP looks like this:
<% @LANGUAGE="JScript" %>
<%
' Works in IE4 and IE5'
var myXml = "menu.xml"
var myXsl = "menu.xsl"
var oXmlDoc = Server.CreateObject("MICROSOFT.XMLDOM"😉;
var oXslDoc = Server.CreateObject("MICROSOFT.XMLDOM"😉;
oXmlDoc.async = false;
oXslDoc.async = false;
oXmlDoc.load(Server.MapPath(myXml));
oXslDoc.load(Server.MapPath(myXsl));
Response.Write(oXmlDoc.transformNode(oXslDoc));
%>
Would this still work, or should I rewrite most of it to go with the newer XML stuff?
Thanks for any opinions...
I am using "<?xml version="1.0"?>"
And my ASP looks like this:
<% @LANGUAGE="JScript" %>
<%
' Works in IE4 and IE5'
var myXml = "menu.xml"
var myXsl = "menu.xsl"
var oXmlDoc = Server.CreateObject("MICROSOFT.XMLDOM"😉;
var oXslDoc = Server.CreateObject("MICROSOFT.XMLDOM"😉;
oXmlDoc.async = false;
oXslDoc.async = false;
oXmlDoc.load(Server.MapPath(myXml));
oXslDoc.load(Server.MapPath(myXsl));
Response.Write(oXmlDoc.transformNode(oXslDoc));
%>
Would this still work, or should I rewrite most of it to go with the newer XML stuff?
Thanks for any opinions...