Subject: Set <xsl:sort> attributes with stylesheet parameters
From: Richard Lewis <richard.lewis@xxxxxxxxx>
Date: Thu, 30 Oct 2003 09:53:44 +0000
|
Hello List,
Why does the following code:
<xsl:sort select="*[local-name()=$sort-by]" order="$sort-order" />
not sort in the order specified by the value $sort-order?
$sort-order is parameter passed to the stylesheet from a combo box on an HTML
form so is definately only ever 'ascending' or 'descending'. (NOTE: the
select attribute value works fine here).
Cheers,
Richard
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|