This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Adding parameters serverside using MSXML2.5


Hi,

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
   processor.addParameter("param1",Request.QueryString("searchval"))
   processor.transform()

   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"";>"

   Response.write (processor.output)
%>

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

Many Thanks

andrew


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]