title: Getting Xml Value based on two attribute conditions
body: <p>My Xml Looks like: </p>
  
  <pre><code>      &lt;Taxes&gt;
        &lt;MyTax currency="USD" MyTaxCat="City"&gt;0.00000&lt;/MyTax&gt;
        &lt;MyTax currency="USD" MyTaxCat="County"&gt;0.01000&lt;/MyTax&gt;
        &lt;MyTax currency="USD" MyTaxCat="District"&gt;0.00000&lt;/MyTax&gt;
        &lt;MyTax currency="USD" MyTaxCat="State"&gt;0.01000&lt;/MyTax&gt;
        &lt;/Taxes&gt;
  </code></pre>
  
  <p>My XSLT :</p>
  
  <pre><code>                &lt;MyTaxes&gt;
              &lt;xsl:for-each select="Taxes/MyTax"&gt; 
                          &lt;Tax&gt;
                          &lt;xsl:attribute name="TaxCategory"&gt;VAT&lt;/xsl:attribute&gt;
                          &lt;xsl:attribute name="TaxName"&gt;
                          &lt;xsl:value-of select="@MyTaxCat" /&gt; 
                          &lt;/xsl:attribute&gt;
                          &lt;xsl:attribute name="TaxPerLine"&gt;
                          &lt;xsl:value-of select="/MyTax[@currency='USD']"/&gt;
                          &lt;/xsl:attribute&gt;
                          &lt;/Tax&gt;
  
                          &lt;/xsl:for-each&gt;
          &lt;/MyTaxes&gt;
  </code></pre>
  
  <p>In my output, all TaxPerLine is getting set as 0.0000</p>
  
  <pre><code>      &lt;MyTaxes&gt;
            &lt;Tax TaxCategory="VAT" TaxName="City" TaxPerLine="0.00000" /&gt;
            &lt;Tax TaxCategory="VAT" TaxName="County" TaxPerLine="0.00000" /&gt;
            &lt;Tax TaxCategory="VAT" TaxName="District" TaxPerLine="0.00000" /&gt;
            &lt;Tax TaxCategory="VAT" TaxName="State" TaxPerLine="0.00000" /&gt;
           &lt;/MyTaxes&gt;
  </code></pre>
  
  <p>Any idea what am I doing wrong here?</p>
  
  <p>Thanks!!</p>