This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Adding parameters serverside using MSXML2.5
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Adding parameters serverside using MSXML2.5
- From: "Chris Bayes" <Chris at Bayes dot co dot uk>
- Date: Sat, 7 Apr 2001 16:07:46 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
Andrew,
Try
call processor.addParameter("param1",Request.QueryString("searchval"))
or
processor.addParameter "param1", Request.QueryString("searchval")
Ciao Chris
XML/XSL Portal
http://www.bayes.co.uk/xml
>-----Original Message-----
>From: owner-xsl-list@lists.mulberrytech.com
>[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Andrew Welch
>Sent: 07 April 2001 15:05
>To: xsl-list@lists.mulberrytech.com
>Subject: [xsl] 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
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list