title: Match the Specific Child Attribute of Specific Parent Node XSLT
body: <p>I am trying to match and change the value of <em>displayHeight</em> attribute of the aspect name <em>x</em> in the following XML using XSL but the following XSL template changes all the displayHeight values. I need the following template to match the displayHeight attribute of only where the aspect name is x. </p>
  
  <pre><code>&lt;xsl:template match="@value[parent::property[@name='displayHeight']]"&gt;
      &lt;xsl:attribute name="value"&gt;
          &lt;xsl:value-of select="'Value Has Been Changed By XSL'"/&gt;
      &lt;/xsl:attribute&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p><strong>XML Source</strong> </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;a&gt;
      &lt;b&gt;
          &lt;aspect name="x"&gt;
             &lt;properties&gt;
                   &lt;property name="displayHeight" value="600"/&gt;
                   &lt;property name="displayWidth" value="800"/&gt;
              &lt;/properties&gt;
           &lt;/aspect&gt;
           &lt;aspect name="y"&gt;
               &lt;properties&gt;
                      &lt;property name="displayHeight" value="1280"/&gt;
                      &lt;property name="displayWidth" value="720"/&gt;
                  &lt;/properties&gt;
           &lt;/aspect&gt;
      &lt;/b&gt;
  &lt;/a&gt;
  </code></pre>