RE: [xsl] Sorting with parameters

Subject: RE: [xsl] Sorting with parameters
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 6 Feb 2001 12:32:39 -0000
> 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


Current Thread