title: Getting the parent node attributes in XSL
body: <p>In my XML I have the following:</p>
  
  <pre><code>&lt;a&gt;
    &lt;b&gt;
      &lt;c something="false"&gt;
        &lt;d&gt;
          &lt;e&gt;
            &lt;f&gt;someResult&lt;/f&gt;
          &lt;/e&gt;
        &lt;/d&gt;
      &lt;/c&gt;
    &lt;/b&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>Now in the XSL within a loop I can do the following:</p>
  
  <pre><code>&lt;xsl:value-of select="f"&gt;&lt;/xsl:value-of&gt;
  </code></pre>
  
  <p>But how can I get the attribute in c?</p>
  
  <p>I've tried doing the following</p>
  
  <pre><code>&lt;xsl:value-of select="////@something"&gt;&lt;/xsl:value-of&gt;
  </code></pre>
  
  <p>As well as trying parent and nothing seems to be working. Can you get parent nodes like this?</p>
  
  <p>Also, I cannot just do:</p>
  
  <pre><code>&lt;xsl:value-of select="/a/b/c/@something"&gt;&lt;/xsl:value-of&gt;
  </code></pre>
  
  <p>As there can be multiple of c.</p>