

当然,JavaScript是我们的克星,因为那时候我们不得处理各种浏览器。是的,当涉及到JavaScript和跨浏览器兼容性的时候,存在于15年前的同样问题今天依然存在。幸运的是,所有的浏览器接受发送对话框给最终用户的方式。
1998年 – JavaScript
alert('Hello, World.'); 很多时间被花在工作于Microsoft XML DLLs上(是的,如果你还记得注册MSXML解析器)。MSXML3.DLL很快就成了我最好的朋友。下面是使用XSLT将XML转换为HTML的一个例子。
1998年 – XML / XSLT to HTML
<?xml version="1.0"?>
<hello>Hello, World!</hello>
<?xml version='1.0'?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="hello"> <html> <head> <title><xsl:value-of select="."/></title> </head> <body> <h1><xsl:value-of select="."/></h1> </body>
<%Const MSXMLClass = "MSXML2.DOMDocument" Set XSLT = Server.CreateObject(MSXMLClass) Set XDoc = Server.CreateObject(MSXMLClass) XDoc.load(Server.MapPath("hello.xml")) XSLT.load(Server.MapPath("hello.xsl")) Response.ClearResponse.Charset = "utf-8"Response.Write XDoc.transformNode(XSLT)%>传真:0755 - 2799 6625
投诉:133-2299-1235
邮箱:sale@inmiga.com