[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Using XSLT to Append a XML Document to a Master XM

Subject: RE: 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
xslt append
> 
> 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
  • param problem
    • Earl Spencer - Tue, 7 Aug 2001 12:19:03 -0400 (EDT)
      • Michael Kay - Tue, 7 Aug 2001 13:01:20 -0400 (EDT)
        • dante - Tue, 7 Aug 2001 13:23:12 -0400 (EDT)
          • Michael Kay - Tue, 7 Aug 2001 14:16:52 -0400 (EDT) <=
          • Francis Norton - Tue, 7 Aug 2001 17:12:07 -0400 (EDT)
      • <Possible follow-ups>
      • Earl Spencer - Tue, 7 Aug 2001 13:22:58 -0400 (EDT)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.