title: How to read attribute of a parent node from a child node in XSLT
body: <p>Just want to know how to read an attribute of a parent node from a child node in XSLT.
  code:</p>
  
  <pre><code>&lt;A&gt;
    &lt;b attr1="xx"&gt;
      &lt;c&gt;
      &lt;/c&gt;
    &lt;/b&gt;
  &lt;/A&gt;
  </code></pre>
  
  <p>XSLT:</p>
  
  <pre><code>&lt;xsl:template match="c"&gt;
    &lt;xsl:value-of select="attribute of b node"&gt;
  &lt;/xsl:template&gt;
  </code></pre>