xsl-list
[Top] [All Lists]

Set <xsl:sort> attributes with stylesheet parameters

2003-10-30 02:53:44
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



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