title: XSL where statement
body: <p>I'm looking for some help with an XSL selector:</p>
  
  <p>What I need is a selector that will show the <strong>Title</strong> of a different list where the <strong>Document</strong> of the same row matches the <strong>Name</strong> field.  If there is no entry, I will show a link to create a new one.  Here is what I have:</p>
  
  <pre><code>&lt;xsl:choose&gt;
      &lt;xsl:when test="/dsQueryResponse
                         /Change_Types
                            /Rows
                               /Row
                                  /@Document = @Name"/&gt;
          &lt;xsl:value-of select="/dsQueryResponse
                                   /Change_Types
                                      /Rows
                                          /Row
                                             /@Document[
                                                /dsQueryResponse
                                                   /Change_Types
                                                      /Rows
                                                         /Row
                                                            /@Document = @Name
                                             ]"/&gt;
      &lt;/xsl:when&gt;
      &lt;xsl:otherwise&gt;
          &lt;!-- Code to show link --&gt;
      &lt;/xsl:otherwise&gt;
  &lt;/xsl:choose&gt;
  </code></pre>
  
  <p>If anyone could point out where I'm going wrong, it would be greatly appreciated!</p>