This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Using XSLT to Append a XML Document to a Master XML Document
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Using XSLT to Append a XML Document to a Master XML Document
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Tue, 7 Aug 2001 19:17:16 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
>
> 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 & Company</publisher>
> </book>
>
> Thanks,
> Oliver Reid
> Perth, Western Australia
> dante@vianet.net.au
> 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