Subject: RE: [xsl] querystring parameters From: "Andrew Welch" <andrew@xxxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 8 Feb 2002 09:44:21 -0000 |
>Server.CreateObject("MSXML3.DOMDocument") You would have thought so, wouldnt you? However its acutally: MSXML2.DOMDocument.3.0 You can visit (all on one line) for v3 and below: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk30/ht m/xmrefguidprogidinformation.asp For a good resource, download msxml4 and have a look at the SDK that comes with it. cheers andrew === -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of alex Sent: Friday, February 08, 2002 12:32 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] 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 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] querystring parameters, alex | Thread | RE: [xsl] querystring parameters, Bryan Rasmussen |
Re: [xsl] National Language Collati, Joerg Pietschmann | Date | Re: [xsl] counter in xsl, Rajesh Thiharie |
Month |