title: xpath expression to select child node based on parent properties
body: <pre><code>&lt;module&gt;
  &lt;component&gt;
     &lt;section&gt;
        &lt;ptemplateId root="1.8"/&gt;
        &lt;entry&gt;
      &lt;observation&gt;
         &lt;templateId root="1.24"/&gt;
      &lt;/observation&gt;
        &lt;/entry&gt;
     &lt;/section&gt;
  &lt;/component&gt;
  &lt;component&gt;
     &lt;section&gt;
        &lt;ptemplateId root="1.10"/&gt;
        &lt;entry&gt;
      &lt;observation&gt;
         &lt;templateId root="1.24"/&gt;
      &lt;/observation&gt;
        &lt;/entry&gt;
     &lt;/section&gt;
  &lt;/component&gt;
  &lt;component&gt;
     &lt;section&gt;
        &lt;ptemplateId root="1.23"/&gt;
        &lt;entry&gt;
      &lt;observation&gt;
         &lt;templateId root="1.24"/&gt;
      &lt;/observation&gt;
       &lt;entryRelation&gt;
          &lt;observation&gt;
           &lt;templateId root="1.24"/&gt;
          &lt;/observation&gt;
       &lt;/entryRelation&gt;
        &lt;/entry&gt;
     &lt;/section&gt;
  &lt;/component&gt;
  &lt;component&gt;
         &lt;section&gt;
            &lt;ptemplateId root="1.8"/&gt;
            &lt;entry&gt;
          &lt;observation&gt;
             &lt;templateId root="1.24"/&gt;
          &lt;/observation&gt;
           &lt;entryRelation&gt;
              &lt;observation&gt;
               &lt;templateId root="1.28"/&gt;
              &lt;/observation&gt;
           &lt;/entryRelation&gt;
            &lt;/entry&gt;
         &lt;/section&gt;
      &lt;/component&gt;
  &lt;/module&gt;
  </code></pre>
  
  <p>I would like to select observation in a template based on ptemplateId, can i know the match expression for this ?</p>
  
  <pre><code>&lt;xsl:template match"******"&gt;
     &lt;!-- some processing goes here to process
          observation if ptemplateId is 1.8... --&gt;
  &lt;/xsl:template&gt;
  
  &lt;xsl:template match"******"&gt;
     &lt;!-- some processing goes here to process
          observation if ptemplateId is other than   1.8... --&gt;
  &lt;/xsl:template&gt;
  
  
   there can be nested observation's also. (i am looking for a match expression with axis expressions to make it more generic)
  </code></pre>