Forum Moderators: bakedjake
Now I was wondering, if I could apply another XSLT file to create a specific WAP version of this part of my site, so that I can offer a page with updates news-titles to people with WAP-enabled mobile phones?
However, when I load the page, the browser (both Mozilla and Internet Explorer) asks me whether I want to open or save the file.
Is this normal? Will a WAP browser handle this correctly?
<%
'Load XML
Set xml = Server.CreateObject("MSXML2.DOMDocument")
xml.async = false
xml.load(Server.MapPath("wml.xml"))
'Load XSL
Set xsl = Server.CreateObject("MSXML2.DOMDocument")
xsl.async = false
xsl.load(Server.MapPath("wml.xsl"))
Response.ContentType = "text/vnd.wap.wml"
Response.Write "<?xml version='1.0'?>"
Response.Write "<!DOCTYPE wml PUBLIC '-//WAPFORUM//DTD WML 1.1//EN' 'http://www.wapforum.org/DTD/wml_1.1.xml'>"
'Transform file
Response.Write(xml.transformNode(xsl))
%>