Hi,
Here's some sample code that works great:
<%
sort_letter = request.querystring("sort_letter")
Set xml = CreateObject("MSXML2.DOMDocument")
xml.async = False
xml.Load (Server.MapPath("3908.xml"))
Set xsl = CreateObject("MSXML2.FreeThreadedDOMDocument")
xsl.async = False
xsl.Load (Server.MapPath("geocache2.xsl"))
Set template = CreateObject("MSXML2.XSLTemplate")
template.stylesheet = xsl
Set processor = template.createProcessor
processor.input = xml
processor.addParameter "sort_letter", sort_letter
processor.Transform
Response.write (processor.output)
%>
William Nienke
Web Developer
Accor North America
bnienke(_at_)accor-na(_dot_)com
-----Original Message-----
From: Mike Brown [mailto:mike(_at_)skew(_dot_)org]
Sent: Thursday, December 19, 2002 11:57 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Passing parameters to XSL
AWK wrote:
Is there any way to pass parameter values to an XSL stylesheet (from an
xhtml file?) when using IE6 as the parser? I know how to pass the value
with xalan, but not IE.
If you invoke MSXML from scripting code embedded in your (X)HTML, then info
you need can be found in the MSXML SDK docs which you can get or peruse
online
at msdn.microsoft.com. Look for addParameter.
If you're trying to do it from an xml-stylesheet processing instruction,
you're out of luck; it wasn't designed for that.
Mike
--
Mike J. Brown | http://skew.org/~mike/resume/
Denver, CO, USA | http://skew.org/xml/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list