[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: query string vaules

Subject: RE: query string vaules
From: alex <shortestpath@xxxxxxxxx>
Date: Tue, 22 Jan 2002 22:22:24 -0800 (PST)
vaules
hi Joshua... 

what I want to do is create a sortable html
table. You click on a column header to sort
rows based on that column. 

I have a javascript function which builds 
a query string that looks like this:

?sortKey=[theColumn]&sortOrder=[ascOrDesc]

The request goes to the server, and I want
to be able use the query string values. I 
did consider using <xsl:parameter> but I 
just didn't know how to. I tried:

<xsl:parameter name="sortKey"   select="???" />
<xsl:parameter name="sortOrder" select="???" />

The further down in my stylesheet, I have:

<xsl:for-each select="Orders/RowId">
  <xsl:sort select="$sortKey" />
  <xsl:sort select="{$sortOrder}" />
  ...

(I read somewhere that I had to escape the order,
using the curly braces.) I hope I'm not on the
wrong track here. Any more help is greatly
appreciated!

thanks in advance,
-alex

In the <xsl:parameter>, I didn't know what
to put for the select. 

--- Joshua.Kuswadi@xxxxxxxxxxxxxxxxxxxx wrote:
> Hi Alex,
> 
> Not knowing exactly how you are using XSL and presuming you are creating
> HTML, have you considered using the <xsl:parameter> for the stylesheet
> from whatever technology is on your server?
> 
> Joshua
> 
> > -----Original Message-----
> > From: alex [mailto:shortestpath@xxxxxxxxx]
> > Sent: Wednesday,23 January 2002 11:34
> > To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> > Subject:  query string vaules
> > 
> > 
> > I was wondering if there was a way to get the
> > query string attributes and values into my
> > xsl stylesheet.
> > 
> > thanks,
> > -alex

=====
"As soon as we started programming, we found out to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact instant when I realized that a large part of my life from then on was going to be spent in finding mistakes in my own programs." 
-Maurice Wilkes

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.