[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] How to change a parameter value...
Subject: RE: [xsl] How to change a parameter value... From: Rod Humphris - FLPTN <rod.humphris@xxxxxxxxxxxxxx> Date: Thu, 19 Jun 2003 14:27:30 +0100 |
Claudio If you get your xslt to write out a hidden input or querystring parameter into the html output (<a href="http://wherever/mypage.aspx?sortorder=ascending">Sort</a>) then on the return your page can pick it up, reverse it and then pass it back to the xslt. eg for MSXML: sSort = Request.QueryString("sortorder") xslTable= Server.CreateObject("MSXML2.FreeThreadedDOMDocument.4.0"); xslTemplate= Server.CreateObject("MSXML2.XSLTemplate.4.0"); xslTable.load("whatever.xslt") xslTemplate.stylesheet=xslTable; xslProc=xslTemplate.createProcessor(); xslProc.addParameter("sortorder", sSort); Cheers Rod -----Original Message----- From: Claudio Russo [mailto:claudio_russo@xxxxxxxxx] Sent: 19 June 2003 13:57 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] How to change a parameter value... Does anybody know how to change a parameter value? I have the next parameter. <xsl:param name="sortorder" select="'ascending'"/> I want to change it to the oposite value (from ascending to descending) onClic for the next time I process the xslt, though I guess I need to know the last value it had. Thanks in advance. ===== Regards, Claudio. IT Consultant. Buenos Aires, Argentina. e-mail: claudio_russo@xxxxxxxxx __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com ________________________________________________________________________ ________________________________________________________________ Any opinions expressed in this email are those of the individual and not necessarily the Company. Unless expressly stated to the contrary, this email is not intended to give rise to a new, or affect an existing, contractual or other legal relationship.This email and any files transmitted with it, including replies and forwarded copies which may contain alterations) subsequently transmitted from the Company, are confidential and solely for the use of the intended recipient. The unauthorised use, disclosure or copying of this email, or any other information contained or attached,is prohibited and could, in certain circumstances, be a criminal offence. If you have received this email in error please notify the sender as soon as possible. This footnote also confirms that this email message has been swept for the presence of computer viruses. www.focusdiy.co.uk _________________________________________________________________ ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com ________________________________________________________________________ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] GetParameter from XSL, Claudio Russo | Thread | [xsl] Re: XSL-List Digest V4 #1401, Joseph Kesselman |
Re: [xsl] How to change a parameter, David Carlisle | Date | RE: [xsl] Inserting global paramete, Michael Kay |
Month |
Keywords