xsl-list
[Top] [All Lists]

Re: Sort order - dynamic select

2005-03-14 07:36:03
----- Original Message ----- From: "Hardy Merrill" <HMerrill(_at_)dhcr(_dot_)state(_dot_)ny(_dot_)us>
To: <jtrepanier(_at_)cforp(_dot_)on(_dot_)ca>; 
<xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Monday, March 14, 2005 2:32 PM
Subject: Re: [xsl] 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


That's easy enough if it's a simple expression, just the name of one element, but not if it's a full path.


Joe
--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>