Re: [xsl] Sort order - dynamic select

Subject: Re: [xsl] Sort order - dynamic select
From: "Hardy Merrill" <HMerrill@xxxxxxxxxxxxxxxx>
Date: Mon, 14 Mar 2005 09:32:24 -0500
Here's how I accomplished that:

   <xsl:param name="select_sort_field"/>

   	<xsl:for-each select="codes/value[code_type =
		<xsl:sort select="*[name()=$select_sort_field]" />

I think you could do something similar ;-)


Hardy Merrill

>>> jtrepanier@xxxxxxxxxxx 03/14/05 9:20 AM >>>

Is it possible to use a parameter as the select element in a sort tag?

<xsl:sort order="{$sorder}" select="$searchTerm"/>

Im trying to get the order based on the $searchTerm


so if $searchTerm = books/authors then in the xsl it would
sort by books/authors.

<xsl:sort order="{$sorder}" select="$searchTerm"/>

is this possible?
I cant get it working, is there another way to do this?


Current Thread