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"/>