title: XSLT - how to get value of tag if attribute equals a specific value
body: <p>I'm trying to get different values according an attribute of a different tag.
  my xml input:</p>
  
  <pre><code>&lt;parties&gt;
      &lt;party code="ADV" id="BOFAUS3NXXX" extension="1"&gt;
          &lt;name1&gt;BANK OF AMERICA, N.A.&lt;/name1&gt;
          &lt;city&gt;Code: NY3-222-14-03&lt;/city&gt;
          &lt;street&gt;Bank of America Merrill Lynch Mail&lt;/street&gt;
          &lt;country&gt;US&lt;/country&gt;
          &lt;swift_address/&gt;
      &lt;/party&gt;
      &lt;party code="BNE" id="11111111-1" extension="1"&gt;
          &lt;name1&gt;BBA Customer 1&lt;/name1&gt;
          &lt;city&gt;PROVIDENCIA&lt;/city&gt;
          &lt;street&gt;PROVIDENCIA 1645&lt;/street&gt;
          &lt;country&gt;ES&lt;/country&gt;
          &lt;swift_address/&gt;
      &lt;/party&gt;
  &lt;/parties&gt;
  </code></pre>
  
  <p>I'm trying to get the value inside <code>name1</code> if the <code>party/@code = "ADV"</code>.</p>
  
  <p>I have tried to use the following expression and it doesn't work:</p>
  
  <pre><code>&lt;xsl:if test="value-of select=("ns1:parties/ns1:party/@code")='ADV'"&gt;
      &lt;td&gt;1st Advising Bank Name: &lt;xsl:value-of select="ns1:parties/ns1:party/name1/&gt;&lt;/td&gt;
  &lt;/xsl:if&gt;
  </code></pre>
  
  <p>Does anybody have any idea?</p>
  
  <p>Thanks in advance</p>