RE: [xsl] Using XSLT to Append a XML Document to a Master XML Document

Subject: RE: [xsl] Using XSLT to Append a XML Document to a Master XML Document
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 7 Aug 2001 19:17:16 +0100
> 
> Is it possible (using a xslt stylesheet) to append the 
> content of one xml
> doc to the end of a master xml doc?
> I want to take the following code & append it to a master XML 
> doc within the
> root element <library>

Yes:

<xsl:template match="library">
  <xsl:copy-of select="node()"/>
  <xsl:copy-of select="document('other.xml')"/>
</xsl:template>

Mike Kay
Software AG

> 
>    <!-- -->
>    <book type="Hardcover" style="Fiction" variant="Book" id="">
>       <title>The Last Precinct</title>
>   <sub_title>The New Scarpetta Novel</sub_title>
>       <author first_name="Patricia" middle_name=""
> last_name="Cornwell">1</author>
>       <illustrator />
>       <image_link>marker.gif</image_link>
>       <description>Forensic Pathology</description>
>       <isbn>0-316-64624-5</isbn>
>       <genre>Crime</genre>
>       <publisher>Little, Brown &amp; Company</publisher>
>    </book>
> 
> Thanks,
>             Oliver Reid
>             Perth, Western Australia
>             dante@xxxxxxxxxxxxx
>             www.vianet.net.au/~dante
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

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


Current Thread