Jessica Hennessey wrote:
Now I want to add a second parameter to pass ascending/descending To the
sort order. Based on everyone's comments, I have changed my xslt to this:
<xsl:param name="order"/>
<xsl:param name="orderdirection" select="'ascending'"/>
.
.
.
<xsl:sort select="*[name()=$order]" order="$orderdirection"/>
Make that
<xsl:sort select="*[name()=$order]" order="{$orderdirection}"/>
that way you use an attribute value template for the value of the order
attribute.
--
Martin Honnen
http://JavaScript.FAQTs.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>
--~--