title: XSL parent node data in child node
body: <p>Source XML:</p>
  
  <pre><code>&lt;COVER_DETAIL&gt;
      &lt;COVERDETAILS&gt;
          &lt;COVERNAME&gt;AAA&lt;/COVERNAME&gt;
          &lt;EFFECTIVEDATE&gt;2010-04-30&lt;/EFFECTIVEDATE&gt;
          &lt;EXPIRYDATE&gt;2022-03-31&lt;/EXPIRYDATE&gt;
          &lt;COVERAMOUNT/&gt;
          &lt;COVERPERCENT/&gt;
          &lt;COVERCODE&gt;60&lt;/COVERCODE&gt;
      &lt;/COVERDETAILS&gt;
      &lt;COVERDETAILS&gt;
          &lt;COVERNAME&gt;BBB&lt;/COVERNAME&gt;
          &lt;EFFECTIVEDATE&gt;2010-04-30&lt;/EFFECTIVEDATE&gt;
          &lt;EXPIRYDATE&gt;2022-03-31&lt;/EXPIRYDATE&gt;
          &lt;COVERAMOUNT/&gt;
          &lt;COVERPERCENT/&gt;
          &lt;COVERCODE&gt;60&lt;/COVERCODE&gt;
      &lt;/COVERDETAILS&gt;
      &lt;COVERDETAILS&gt;
          &lt;COVERNAME&gt;CCC&lt;/COVERNAME&gt;
          &lt;EFFECTIVEDATE&gt;2022-04-01&lt;/EFFECTIVEDATE&gt;
          &lt;EXPIRYDATE&gt;2032-03-31&lt;/EXPIRYDATE&gt;
          &lt;COVERAMOUNT/&gt;
          &lt;COVERPERCENT&gt;100&lt;/COVERPERCENT&gt;
          &lt;COVERCODE&gt;62&lt;/COVERCODE&gt;
      &lt;/COVERDETAILS&gt;
      &lt;COVERDETAILS&gt;
          &lt;COVERNAME&gt;DDD&lt;/COVERNAME&gt;
          &lt;EFFECTIVEDATE&gt;2022-04-01&lt;/EFFECTIVEDATE&gt;
          &lt;EXPIRYDATE&gt;2032-03-31&lt;/EXPIRYDATE&gt;
          &lt;COVERAMOUNT/&gt;
          &lt;COVERPERCENT/&gt;
          &lt;COVERCODE&gt;85&lt;/COVERCODE&gt;
      &lt;/COVERDETAILS&gt;
  &lt;/COVER_DETAIL&gt;
  </code></pre>
  
  <p>XSLT:</p>
  
  <pre><code>&lt;xsl:template name="COVERDETAILS"&gt;
      &lt;xsl:variable name="i" select="position()" /&gt;
      &lt;fo:table-row&gt;
          &lt;fo:table-cell&gt;
              &lt;fo:block&gt;
                  &lt;xsl:value-of select="$i"/&gt;
                  &lt;xsl:text&gt;. &lt;/xsl:text&gt;
                  &lt;xsl:value-of select="COVERNAME"/&gt;
              &lt;/fo:block&gt;
          &lt;/fo:table-cell&gt;
          &lt;fo:table-cell&gt;
              &lt;fo:block&gt; --- Here i want to display percentage &lt;/fo:block&gt;
          &lt;/fo:table-cell&gt;
      &lt;/fo:table-row&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>How can I apply the <code>coverpercent</code> value of <code>covercode</code> <code>62</code> to as <code>coverpercent</code> value of all other covers in for each template. I want to apply the <code>coverpecent</code> of cover with <code>covercode</code> <code>62</code> to each and every other cover.</p>