Here's how I accomplished that:
<xsl:param name="select_sort_field"/>
<xsl:for-each select="codes/value[code_type =
$code_type]">
<xsl:sort select="*[name()=$select_sort_field]" />
I think you could do something similar ;-)
HTH.
Hardy Merrill
jtrepanier(_at_)cforp(_dot_)on(_dot_)ca 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
ie.
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?
thanks!
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--