This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: query string vaules
- From: alex <shortestpath at yahoo dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 22 Jan 2002 22:22:24 -0800 (PST)
- Subject: RE: [xsl] query string vaules
- Reply-to: xsl-list at lists dot mulberrytech dot com
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@BTFinancialgroup.com 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@yahoo.com]
> > Sent: Wednesday,23 January 2002 11:34
> > To: XSL-List@lists.mulberrytech.com
> > Subject: [xsl] 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