Forum Moderators: coopster
How can I do this in PHP? At least, what functions should I look into? The XML and XSLT are already written.
And is the transformation (PHP code) comparable to this (ASP code), or does PHP use an entirely different method to obtain this result?
I'm only starting out with PHP programming, decided it would be a better use of my time (and money...) than learning more ASP. Right now I need this code to complete the transition from ASP scripting to PHP scripting for a large number of pages on my website.
<% 'Load XML set xml = Server.CreateObject("Microsoft.XMLDOM") xml.async = false xml.load(Server.MapPath("news.xml"))
'Load XSL set xsl = Server.CreateObject("Microsoft.XMLDOM") xsl.async = false xsl.load(Server.MapPath("news.xsl"))
'Transform file Response.Write(xml.transformNode(xsl)) %>
[edited by: Darkelve at 9:03 am (utc) on July 26, 2006]