This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FW: querystring parameters




-----Original Message-----
From: alex [mailto:shortestpath@yahoo.com]
Sent: Thursday, February 07, 2002 4:32 PM
To: xsl-list@lists.mulberrytech.com
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@perceive.net> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]