This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Sorting with parameters


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]