I am placing xml into a table in html and trying to sort based on a parameter, but my parameter's value is not being used. It uses the string "$sortkey" instead.
Here is an xsl excerpt:
<xsl:for-each select="catalog/cd">
<xsl:param name ="sortkey" select="country"></xsl:param>
<xsl:sort select="$sortkey"/>
<tr>
<td>
<xsl:value-of select="title"/>
</td>
<td>
<xsl:value-of select="artist"/>
</td>
<td>
<xsl:value-of select="country"/>
</td>
<td>
...etc....
If I stick "title" in my sort's select statement I get the results sorted by title.
Is this not legal for some reason?