[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Adding parameters serverside using MSXML2.5

Subject: Adding parameters serverside using MSXML2.5
From: "Andrew Welch" <andrew@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 7 Apr 2001 15:04:49 +0100
parameter in msxml2
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.