[xsl] Adding parameters serverside using MSXML2.5

Subject: [xsl] Adding parameters serverside using MSXML2.5
From: "Andrew Welch" <andrew@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 7 Apr 2001 15:04:49 +0100

I want to pass a parameter to an xslt file using the following ASP.  Does
MSXML2.5 support the use of the following objects, or are they called
something else for 2.5??

(the xml file is already loaded at this point)

<% Response.Buffer=True %>
   Dim template
   Dim xsl

   Set xsl = Server.CreateObject("MSXML.FreeThreadedDOMDocument")
   xsl.async = false
   xsl.load (Server.MapPath("/xsl/searchwml.xsl"))

   Set template = Server.CreateObject("MSXML2.XSLTemplate")
   template.stylesheet = xsl
   processor = template.createProcessor()

   processor.input = xml

   Response.ContentType = "text/vnd.wap.wml"
   Response.Write "<?xml version=""1.0"" ?>"
   Response.Write "<!DOCTYPE wml PUBLIC ""-//WAPFORUM//DTD " & _
                  "WML 1.1//EN""

   Response.write (processor.output)

Currently I get the error - 'cannot use parenthesis when calling a sub'
pointing to the addParameter method.

Many Thanks


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread