title: Using Variables in <xsl:sort select=""/>
body: <p>Hi am build a generic template to list my content.  But the Content may be sorted on different @'s or node()'s. So want to pass the xPath in.</p>
  
  <pre><code>&lt;xsl:variable name="sort" select="@sortBy"/&gt;
  &lt;xsl:variable name="order" select="@order"/&gt;
  
  &lt;xsl:for-each select="Content[@type=$contentType]"&gt;
    &lt;xsl:sort select="$sort" order="{$order}" data-type="text"/&gt;
    &lt;xsl:sort select="@update" order="{$order}" data-type="text"/&gt;
      &lt;xsl:copy-of select="."/&gt;
  &lt;/xsl:for-each&gt;
  </code></pre>
  
  <p>Using a variable to drop in ascending or descending into the <code>order=""</code> WORKS.  </p>
  
  <p>Why cannot do this on the <code>select=""</code> ?</p>
  
  <p>I hoping to make this super dynamic the select variable can be xPtah either @publish or Title/node() or any xPath.</p>
  
  <p>There is no error - It just ignores the sort.</p>