asp在伺服器把XML 轉換成XHTML的實作程式碼,需要的朋友可以參考下。複製代碼代碼如下:
<%
'Load XML
set xml = Server.CreateObject(Microsoft.XMLDOM) xml.async = false xml.load(Server.MapPath(cdcatalog.xml))
'Load XSL
set xsl = Server.CreateObject(Microsoft.XMLDOM) xsl.async = false xsl.load(Server.MapPath(cdcatalog.xsl))
'Transform file
Response.Write(xml.transformNode(xsl))
%>