title: creating copy of parent node by child node value in xslt
body: <p>Below is the structure of my XML.</p>
  
  <pre><code>&lt;Client&gt;
    &lt;Document&gt;
      &lt;service class="ABC"&gt;
        &lt;author name="p"/&gt;
        &lt;title&gt;t1&lt;/title&gt;
        &lt;Details&gt;
          ...
        &lt;/Details&gt;
      &lt;/service&gt;
     &lt;/Document&gt;
     &lt;Document&gt;
       &lt;service class="XYZ"&gt;
         &lt;author name="a"/&gt;
         &lt;title&gt;t2&lt;/title&gt;
         &lt;Details&gt;
           ...
         &lt;/Details&gt;
       &lt;/service&gt;
     &lt;/Document&gt;
     &lt;Document&gt;
       &lt;service class="PQR"&gt;
         &lt;author name="x"/&gt;
         &lt;title&gt;t3&lt;/title&gt;
         &lt;Details&gt;
           ...
         &lt;/Details&gt;
       &lt;/service&gt;
     &lt;/Document&gt;
  &lt;/Client&gt;
  </code></pre>
  
  <p>I want to create copy of document node who has title as 't2' but not able to figure out the solution. The output should look like</p>
  
  <pre><code>&lt;Client&gt;
    &lt;Document&gt;
      &lt;service class="ABC"&gt;
        &lt;author name="p"/&gt;
        &lt;title&gt;t1&lt;/title&gt;
        &lt;Details&gt;
          ...
        &lt;/Details&gt;
      &lt;/service&gt;
     &lt;/Document&gt;
     &lt;Document&gt;
       &lt;service class="XYZ"&gt;
         &lt;author name="a"/&gt;
         &lt;title&gt;t2&lt;/title&gt;
         &lt;Details&gt;
           ...
         &lt;/Details&gt;
       &lt;/service&gt;
     &lt;/Document&gt;
     &lt;Document&gt;
       &lt;service class="PQR"&gt;
         &lt;author name="x"/&gt;
         &lt;title&gt;t3&lt;/title&gt;
         &lt;Details&gt;
           ...
         &lt;/Details&gt;
       &lt;/service&gt;
     &lt;/Document&gt;
     &lt;Document&gt;
       &lt;service class="XYZ"&gt;
         &lt;author name="a"/&gt;
         &lt;title&gt;t2&lt;/title&gt;
         &lt;Details&gt;
           ...
         &lt;/Details&gt;
       &lt;/service&gt;
     &lt;/Document&gt;
  &lt;/Client&gt;
  </code></pre>
  
  <p>Thank you for your help its greatly appreciated.</p>