QuantumDoja
Programmer
Hi, I have this code: It reads in a dynamic xml and normal xsl stylesheet, but when i transform i get the error:
"System does not support the specified encoding."
Any ideas?
"System does not support the specified encoding."
Any ideas?
Code:
<%
'Response.ContentType = "text/xml"
'Response.Expires = 0
'loading an article from the database.
Dim ID
ID = Request.QueryString("ID")
ID = Trim(ID)
sourceFile = "genxml.asp?ID="&ID&""
styleFile = Server.MapPath("Display.xsl")
set source = Server.CreateObject("Microsoft.XMLDOM")
source.async = false
source.load(sourceFile)
set style = Server.CreateObject("Microsoft.XMLDOM")
style.async = false
style.load(styleFile)
Response.Write source.transformNode(style)
%>