Hi!
I'm trying to transform xml with the microsoft parser. Somehow, I cannot get it to output the full tranformed document to the browser.
If I try:
I only see a '?' in the browser.
If I try replacing the last lines of the script with
(Should be somewhat slower, and I need the best speed I can get)
I DO get output, but the output is truncated a about 10.000 bytes. If I request the length of the xslProc.output, I get 23000 bytes.
I'm using IIS6 and Windows 2003.
Testing the transformation using the command line tool works fine.
Any ideas?
I'm trying to transform xml with the microsoft parser. Somehow, I cannot get it to output the full tranformed document to the browser.
If I try:
Code:
<% @Language = "VBScript" %>
<%
Dim xmlDoc
Dim xslDoc
Dim xmlOutput
Dim xslProc
Set xslt = Server.CreateObject("MSXML2.XSLTemplate.4.0")
Set xmlDoc = Server.CreateObject("MSXML2.DOMDocument.4.0")
Set xslDoc = Server.CreateObject("MSXML2.FreeThreadedDOMDocument.4.0")
xslDoc.async = False
xslDoc.load "" + Request.QueryString("stylesheet")
Set xslt.stylesheet = xslDoc.documentelement
xmlDoc.async = False
xmlDoc.validateOnParse = False
xmlDoc.load "" + Request.QueryString("input")
Set xslProc = xslt.createProcessor()
xslProc.input = xmlDoc
xslProc.Output = Response
xslProc.Transform
%>
I only see a '?' in the browser.
If I try replacing the last lines of the script with
Code:
'xslProc.Output = Response
xslProc.Transform
Response.write xslProc.output
(Should be somewhat slower, and I need the best speed I can get)
I DO get output, but the output is truncated a about 10.000 bytes. If I request the length of the xslProc.output, I get 23000 bytes.
I'm using IIS6 and Windows 2003.
Testing the transformation using the command line tool works fine.
Any ideas?