This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Sorting with parameters
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Sorting with parameters
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Tue, 6 Feb 2001 12:32:39 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
> I want to be able to
> sort by clicking on selected column headers.
> Is the " select="$sortName" " not the correct XPATH for this.
No (this is a FAQ). Sorting on "$sortName" is the same as sorting on
"SeilNr" - it means every element has the same sort key.
Provided the keys are always element names, try
<xsl:sort select="*[name()=$sortName]"/>
Mike Kay
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list