Merging two documents

Subject: Merging two documents
From: "Terris" <terris@xxxxxxxxxx>
Date: Mon, 13 Sep 1999 18:24:24 -0700
Can I use XSLT to do this?

I want to add part of an XML document to another 
XML document.

Example:

I want to merge documents 1 and 2.

Document 1:

<Book id="1"><Name>The wizard of OZ</Name></Book>
<Book id="2"><Name>Java Servlet Programming</Name></Book>
<Book id="3"><Name>John Coltrane Rage</Name></Book>

Document 2:

<BookList>
   <Book id="1"/>
   <Book id="2"/>
</BookList>

Target Document:

<BookList>
   <Book id="1"><Name>The wizard of OZ</Name></Book>
   <Book id="2"><Name>Java Servlet Programming</Name></Book>
</BookList>


Seems like you need a nested look-up.

Thanks!



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread