| 
 
Subject: Re: MSXMX Params/Variables supported ? From: "Bill Humphries" <bill@xxxxxxxxx> Date: Thu, 3 Aug 2000 20:12:39 -0700  | 
----- Original Message -----
From: Jac Cowan <jacc@xxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxx>
Sent: Wednesday, August 02, 2000 1:43 PM
Subject: MSXMX Params/Variables supported ?
> Does MSXML ( dll v 5.*, IE 5 ) allow the use of Params or variables
 syntax
> examples appreciated !!! ) ?
> I'm using the parser that came with Win 2k AS with no updates.
You'll need to make sure you have the May or later release of the parser.
>From reading the documentation in the SDK and Michael Kay's book (you
know he will be known as St. Michael soon :> )
You can't use the transformNode method of the DOM, instead, you need
to create a XSLTemplate object, get an XSLTProcessor object from it,
then use the addParameter method.
<%@LANGUAGE="VBScript"%>
<%
Dim xsldoc
Dim myTemplate
Dim myProc
Dim xmldoc
'It has to be Free-Threaded, the idea is to make the widget available
'to an app and have multple users bang on it.
Set xsldoc = Server.CreateObject("Msxml2.FreeThreadedDOMDocument.3.0")
xsldoc.async = false
xsldoc.load Server.MapPath("tranform.xsl")
'This is the critical widget, a compliled XSL template
Set myTemplate = Server.CreateObject("Msxml2.XSLTemplate.3.0")
myTemplate.stylesheet = xsldoc
Set xmldoc = Server.CreateObject("Msxml2.DOMDocument.3.0")
xmldoc.async = false
xmldoc.load Server.MapPath("input.xml")
Set myProc = myTemplate.createProcessor()
myProc.input = xmldoc
'Now set the parameter
myProc.addParameter(foo,"bar")
myProc.output = Response
myProc.transform()
%>
I hope this helps,
Bill Humphries <bill@xxxxxxxxx>
http://www.whump.com/moreLikeThis/
 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| MSXMX Params/Variables supported ?, Jac Cowan | Thread | MSXML & external values, Jac Cowan | 
| RE: <xsl:stylesheet xmlns..., Paulo Gaspar | Date | Re: Saxon VS XT, Paul Tchistopolskii | 
| Month |