title: Select the current value in a dropdownlist using XSL and SharePoint
body: <p>I'm using the row edit template below.  The problem I have is that the current value is not selected when the row edit XSL template is used.  The value defaults to the first item in the list.  What is the best way to get the current value to be the selected item in the template below?  I thought having DataValueField="{@type}" and DataTextField="{@type}" would resolve the issue, but it does not.</p>
  
  <pre><code>&lt;asp:DropDownList runat="server"  id="ff3{$Pos}" 
   DataValueField="{@type}"  DataTextField="{@type}"  
   __designer:bind="{ddwrt:DataBind('u',concat('ff3',$Pos),'SelectedValue','TextChanged','',string($XPath),'@type')}"&gt;
   &lt;asp:ListItem&gt;1&lt;/asp:ListItem&gt;
   &lt;asp:ListItem&gt;2&lt;/asp:ListItem&gt;
   &lt;asp:ListItem&gt;3&lt;/asp:ListItem&gt; 
  &lt;/asp:DropDownList &gt; 
  </code></pre>