title: XSLT: get xml element when 2 conditions matches
body: <p>Aim is merging 3 files into one file.</p>
  
  <p>In first step, I got 2 vars from first 2 files.</p>
  
  <p>The 3rd file looks like:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="iso-8859-15"?&gt;&lt;BeraterInnen&gt;
     &lt;Berater&gt;
        &lt;mitarbeiter_id&gt;1234&lt;/mitarbeiter_id&gt;
        &lt;berater_id&gt;5551&lt;/berater_id&gt;
        &lt;fk_oe_id&gt;2222&lt;/fk_oe_id&gt;
        &lt;Berater_Name&gt;John Doe&lt;/Berater_Name&gt;
     &lt;/Berater&gt;
     &lt;Berater&gt;
        &lt;mitarbeiter_id&gt;1234&lt;/mitarbeiter_id&gt;
        &lt;berater_id&gt;5552&lt;/berater_id&gt;
        &lt;fk_oe_id&gt;3333&lt;/fk_oe_id&gt;
        &lt;Berater_Name&gt;John Doe&lt;/Berater_Name&gt;
     &lt;/Berater&gt;
     ...cut..
  </code></pre>
  
  <p>As you can see, mitarbeiter_id is the same but for fk_oe_id = 2222 and fk_oe_id = 3333, I get different berater_id. Therefore, I can't </p>
  
  <pre><code> &lt;xsl:value-of select="$Berater[fk_oe_id = $var1]/berater_id"/&gt; or
   &lt;xsl:value-of select="$Berater[mitarbeiter_id = $var2]/berater_id"/&gt; or
  </code></pre>
  
  <p>Note: $Berater is doc()</p>
  
  <p>I need these berater_id and berater_name from that node matches fk_oe_id = var1 <strong>AND</strong> mitarbeiter_id = var2.</p>
  
  <p>thanks in advance,
   Celal</p>