Re: querystring parameters
again, hope this isn't off topic- In my asp page when I use: Server.CreateObject("MSXML3.DOMDocument") it doesn't work, but when I use Server.CreateObject("MSXML2.DOMDocument") it works. I did a search on the web server machine (it's not local), and I see both dll's in the c:\winnt\system32 folder. Anyone know why msxml3 isn't working? thanks, -alex --- Eric Vitiello <xsl-list@xxxxxxxxxxxx> wrote: > -- Aniceto López [Mon, 4 Feb 2002 17:31:54 +0100]: > >Hi all, newbie question: > >this is the way we work: > >the asp file is generating the xml asigning also a xsl and > >transforming. > >sometimes when the asp is requested some values are added in the > >queryString (i.e.: whatever.asp?msg=sometext&errortype=20) > >is there anyway to get this values inside ths xsl from the > >querystring? > >this is the idea: <xsl:variable name="dni" > >select="querystring.dni.value"/> > >but don't know if possible or just one more of my stupid ideas > > ahhh! I do this quite frequently. here's a bit of code: > > ' Load the XML > Set xml = CreateObject(DOMDocument_version) > xml.async = False > xml.loadXML(process_page) > > 'Load the XSL > Set xsl = CreateObject(DOMDocument_version) > xsl.async = False > xsl.setProperty "SelectionLanguage", "XPath" > xsl.load(process_base) > > Set variableNode = xsl.SelectSingleNode("//*[@name='qualify']") > If IsObject(importNode) Then > variableNode.text = qualify > Else > Err.Raise 65535,"Unable to retrieve object for xsl:variable tag" > End If > > > > in the xsl file i have the line: > > <xsl:variable name="qualify"/> > > the last six lines gets a reference to that node, and changes the value > of the text portion of the node to the "qualify" variable, which I get > from the response.form() object. > > you can then run your transformation, and the $qualify variable will > hold the proper value. > > > --- > Eric Vitiello > Perceive Designs > <www.perceive.net> __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format