Subject: RE: [xsl] Passing parameters to XSL From: "NIENKE, Bill P. - ACCOR-NA" <Nienke_Bill@xxxxxxxxxxxx> Date: Thu, 19 Dec 2002 13:12:36 -0600 |
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@xxxxxxxxxxxx -----Original Message----- From: Mike Brown [mailto:mike@xxxxxxxx] Sent: Thursday, December 19, 2002 11:57 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Passing parameters to XSL, Uslu, Cihan Y (MED) | Thread | [xsl] Yet Another Entity Ref questi, Marco Guazzone |
RE: [xsl] Passing parameters to XSL, Uslu, Cihan Y (MED) | Date | [xsl] Yet Another Entity Ref questi, Marco Guazzone |
Month |