Subject: Re: [xsl] using parameter in xsl created within html wrapper From: "Diego Padilla Brito" <diego.padilla@xxxxxxx> Date: Tue, 9 Apr 2002 16:59:35 +0200 |
Hi all! Keep in mind that XSL is in the server side and JavaScript is in the client side. You cannot change the server response dinamically in a browser without make another request. The solution is create a dynamic Javascript with all posibilites by XSL. i.e. XML: .... <option> <value>La Palma</value> <href>http://www.infolapalma.com</href> <option> <option> <value>Aridane</value> <href>http://www.aridane.org</href> <option> ..... XSL: ...... <script> <xsl:for-each select="option"> if (variable == <xsl:value-of select="value">) { location.href=<xsl:value-of select="href"/>;} </xsl:for-each> </script> ..... The result in HTML has all XML posibilities. ----- Original Message ----- From: "new comcast email" <guiffre@xxxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Tuesday, April 09, 2002 3:27 PM Subject: RE: [xsl] using parameter in xsl created within html wrapper > is it possible to pass a string variable (created in javascript within html wrapper) to be used by xsl in an xsl:if test=($parameterString)? If yes, does anyone have any code examples. I am trying to create a 'filter' which users can select (clicking on/off check boxes) to turn on/off display of desired groups of xml data. All filtering to be client-side processing. > > Any other alternatives for client-side filtering of xml data where multiple selections can be made (i.e., I want groupA, groupB and groupD data displayed, but not groupC) or - I just want groupB data - could be any combination of groupA thru groupX. > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > ------------------------------------------------------------------ This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of SchlumbergerSema. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. ------------------------------------------------------------------ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] using parameter in xsl cr, Jeni Tennison | Thread | [xsl] Conditional indentation?, Ned Batchelder |
[xsl] xslt, xml, and databases - ho, Graham Seaman | Date | Re: [xsl] Floating point numbers in, Richard Jinks |
Month |