title: xml merge two files using xsl?
body: <p>I need to merge two similar xml files, but only records which match on common tags, e.g.<code>&lt;type&gt;</code> in the following example:</p>
  
  <p>file1.xml is</p>
  
  <pre><code>&lt;node&gt;
      &lt;type&gt;a&lt;/type&gt;
      &lt;name&gt;joe&lt;/name&gt;
  &lt;/node&gt;
  &lt;node&gt;
      &lt;type&gt;b&lt;/type&gt;
      &lt;name&gt;sam&lt;/name&gt;
  &lt;/node&gt;
  </code></pre>
  
  <p>file2.xml is     </p>
  
  <pre><code>&lt;node&gt;
      &lt;type&gt;a&lt;/type&gt;
      &lt;name&gt;jill&lt;/name&gt;
  &lt;/node&gt;
  </code></pre>
  
  <p>so that I have an output of</p>
  
  <pre><code>&lt;node&gt;
      &lt;type&gt;a&lt;/type&gt;
      &lt;name&gt;jill&lt;/name&gt;
      &lt;name&gt;joe&lt;/name&gt;
  &lt;/node&gt;
  &lt;node&gt;
      &lt;type&gt;b&lt;/type&gt;
      &lt;name&gt;sam&lt;/name&gt;
  &lt;/node&gt;
  </code></pre>
  
  <p>What are the basics of doing this, in xsl? 
  Many thanks.</p>