I want to load multiple XML documents on the same page, and style them with XSLT. I don't want to use JavaScript because that is too complex, and it looks bad on the page. In ASP, the code to run it on the server is:
<%
'Load XML
set xml = Server.CreateObject("Microsoft.XMLDOM")
xml.async = false
xml.load(Server.MapPath("XML FILE))
'Load XSL
set xsl = Server.CreateObject("Microsoft.XMLDOM")
xsl.async = false
xsl.load(Server.MapPath("XSL FILE"))
'Transform file
Response.Write(xml.transformNode(xsl))
%>
Is there a PHP version of this? Because I only know of this code; I can't actually use ASP; I have no knowledge in it.
<%
'Load XML
set xml = Server.CreateObject("Microsoft.XMLDOM")
xml.async = false
xml.load(Server.MapPath("XML FILE))
'Load XSL
set xsl = Server.CreateObject("Microsoft.XMLDOM")
xsl.async = false
xsl.load(Server.MapPath("XSL FILE"))
'Transform file
Response.Write(xml.transformNode(xsl))
%>
Is there a PHP version of this? Because I only know of this code; I can't actually use ASP; I have no knowledge in it.