[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: query string 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|