This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: passing params using asp into wml
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] passing params using asp into wml
- From: "Daniel Newman" <daniel dot newman at bis-web dot net>
- Date: Tue, 10 Apr 2001 13:10:26 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
I just tried it in VB, and if you use the following code, you should be
alright?
Dim xml As MSXML2.DOMDocument
Dim xsl As MSXML2.FreeThreadedDOMDocument
Dim template As MSXML2.XSLTemplate
Dim processor As Object
Set xml = CreateObject("MSXML2.DOMDocument")
xml.async = False
xml.Load (Server.MapPath("/xml/clubs.xml"))
Set xsl = CreateObject("MSXML2.FreeThreadedDOMDocument")
xsl.async = False
xsl.Load (Server.MapPath("/xsl/searchwml.xsl"))
Set template = CreateObject("MSXML2.XSLTemplate")
template.stylesheet = xsl
Set processor = template.createProcessor
processor.input = xml
processor.addParameter "param1", Request.QueryString("param1")
processor.Transform
Check out the Set processor line.
hth?
Daniel Newman.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list