[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Sort order - dynamic select
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@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 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!
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|